mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 9.0.1186: imported class does not work when used twice in a line
Problem: Imported class does not work when used twice in a line. Solution: Fix the type parsing.
This commit is contained in:
@@ -992,6 +992,10 @@ def Test_class_import()
|
||||
a = animal.Animal.new('fish', 'Eric')
|
||||
assert_equal('fish', a.kind)
|
||||
assert_equal('Eric', a.name)
|
||||
|
||||
var b: animal.Animal = animal.Animal.new('cat', 'Garfield')
|
||||
assert_equal('cat', b.kind)
|
||||
assert_equal('Garfield', b.name)
|
||||
END
|
||||
v9.CheckScriptSuccess(lines)
|
||||
enddef
|
||||
|
Reference in New Issue
Block a user