Mercurial > vim
comparison src/testdir/test_vim9_typealias.vim @ 34344:be4389b04043 v9.1.0105
patch 9.1.0105: Style: typos found
Commit: https://github.com/vim/vim/commit/e71022082d6a8bd8ec3d7b9dadf3f9ce46ef339c
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue Feb 13 20:32:04 2024 +0100
patch 9.1.0105: Style: typos found
Problem: Style: typos found
Solution: correct them
(zeertzjq)
closes: #14023
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 13 Feb 2024 20:45:05 +0100 |
parents | ab6a70fad5b5 |
children | f57990be7526 |
comparison
equal
deleted
inserted
replaced
34343:f47ebfc6e979 | 34344:be4389b04043 |
---|---|
639 | 639 |
640 Fref() | 640 Fref() |
641 END | 641 END |
642 v9.CheckScriptFailure(lines, 'E1407: Cannot use a Typealias as a variable or value', 1) | 642 v9.CheckScriptFailure(lines, 'E1407: Cannot use a Typealias as a variable or value', 1) |
643 | 643 |
644 # check defered function using typealias as arg | 644 # check deferred function using typealias as arg |
645 lines =<< trim END | 645 lines =<< trim END |
646 vim9script | 646 vim9script |
647 type A = number | 647 type A = number |
648 def F(arg: any) | 648 def F(arg: any) |
649 enddef | 649 enddef |
762 | 762 |
763 Fref() | 763 Fref() |
764 END | 764 END |
765 v9.CheckScriptFailure(lines, 'E1405: Class "C" cannot be used as a value', 1) | 765 v9.CheckScriptFailure(lines, 'E1405: Class "C" cannot be used as a value', 1) |
766 | 766 |
767 # check defered function using class typealias as arg | 767 # check deferred function using class typealias as arg |
768 lines =<< trim END | 768 lines =<< trim END |
769 vim9script | 769 vim9script |
770 class C | 770 class C |
771 endclass | 771 endclass |
772 type A = C | 772 type A = C |