diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2024-04-27 11:36:12 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-04-27 11:48:26 +0200 |
commit | ac7731895c996acef4d02b784f9952749226e203 (patch) | |
tree | 60a6d4a28b3e64f96ccf7587fdb490b2c40cb88a /src/testdir/test_vim9_typealias.vim | |
parent | 340643e9779a96710a27d0eeef24f2c08b8967c4 (diff) |
patch 9.1.0376: Vim9: Trailing commands after class/enum keywords ignoredv9.1.0376
Problem: Vim9: Trailing commands after class/enum keywords ignored
Solution: Remove EX_TRLBAR keyword from command definition
(Yegappan Lakshmanan)
closes: #14649
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir/test_vim9_typealias.vim')
-rw-r--r-- | src/testdir/test_vim9_typealias.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_typealias.vim b/src/testdir/test_vim9_typealias.vim index 998079cf6f..cf540c2306 100644 --- a/src/testdir/test_vim9_typealias.vim +++ b/src/testdir/test_vim9_typealias.vim @@ -172,6 +172,14 @@ def Test_typealias() END v9.CheckSourceSuccess(lines) + # another command follows a type alias + lines =<< trim END + vim9script + type MyType = number | var x = 20 + assert_equal(20, x) + END + v9.CheckSourceSuccess(lines) + # Sourcing a script twice (which will free script local variables) # Uses "lines" from the previous test new |