comparison src/testdir/test_vim9_typealias.vim @ 35141:920e132817da v9.1.0400

patch 9.1.0400: Vim9: confusing error message for unknown type Commit: https://github.com/vim/vim/commit/1b53172901ebe5be3ddf1baee22d964c8d41e899 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Thu May 9 09:12:31 2024 +0200 patch 9.1.0400: Vim9: confusing error message for unknown type Problem: Vim9: confusing error message for unknown type (Doug Kearns) Solution: For an unknown type, display only the type name in the error message (Yegappan Lakshmanan) fixes: #13153 closes: #14736 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 09 May 2024 09:30:06 +0200
parents f57990be7526
children
comparison
equal deleted inserted replaced
35140:9ba95f736abb 35141:920e132817da
361 vim9script 361 vim9script
362 import './Xtypeexport.vim' as A 362 import './Xtypeexport.vim' as A
363 363
364 var myNum: A.SomeType = 10 364 var myNum: A.SomeType = 10
365 END 365 END
366 v9.CheckScriptFailure(lines, 'E1010: Type not recognized: A.SomeType = 10', 4) 366 v9.CheckScriptFailure(lines, 'E1010: Type not recognized: A.SomeType', 4)
367 367
368 # Use a type alias that is not exported 368 # Use a type alias that is not exported
369 lines =<< trim END 369 lines =<< trim END
370 vim9script 370 vim9script
371 type NewType = dict<string> 371 type NewType = dict<string>