diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-03-11 20:56:35 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-03-11 20:56:35 +0000 |
commit | d13dd30240e32071210f55b587182ff48757ea46 (patch) | |
tree | 4a752aa8839e10003439f858e8d9125f7907a240 /src/testdir | |
parent | c481ad38f05c9f759ca7fd01a54c78acad794e85 (diff) |
patch 9.0.1402: crash when using null_classv9.0.1402
Problem: Crash when using null_class.
Solution: Give an error when trying to use a null class.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_vim9_class.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_class.vim b/src/testdir/test_vim9_class.vim index bc8a8e1d54..4b6a730bbd 100644 --- a/src/testdir/test_vim9_class.vim +++ b/src/testdir/test_vim9_class.vim @@ -203,6 +203,13 @@ def Test_returning_null_object() v9.CheckScriptSuccess(lines) enddef +def Test_using_null_class() + var lines =<< trim END + @_ = null_class.member + END + v9.CheckDefExecAndScriptFailure(lines, ['E715:', 'E1363:']) +enddef + def Test_class_interface_wrong_end() var lines =<< trim END vim9script |