Mercurial > vim
comparison src/testdir/test_vim9_class.vim @ 31708:f6309f6742e5 v9.0.1186
patch 9.0.1186: imported class does not work when used twice in a line
Commit: https://github.com/vim/vim/commit/4059400993ff380414dce9b577eff0f8c86b7725
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 12 20:04:51 2023 +0000
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 12 Jan 2023 21:15:03 +0100 |
parents | 824fc05d9571 |
children | 2d68375d5ddf |
comparison
equal
deleted
inserted
replaced
31707:5c243262fc48 | 31708:f6309f6742e5 |
---|---|
990 | 990 |
991 var a: animal.Animal | 991 var a: animal.Animal |
992 a = animal.Animal.new('fish', 'Eric') | 992 a = animal.Animal.new('fish', 'Eric') |
993 assert_equal('fish', a.kind) | 993 assert_equal('fish', a.kind) |
994 assert_equal('Eric', a.name) | 994 assert_equal('Eric', a.name) |
995 | |
996 var b: animal.Animal = animal.Animal.new('cat', 'Garfield') | |
997 assert_equal('cat', b.kind) | |
998 assert_equal('Garfield', b.name) | |
995 END | 999 END |
996 v9.CheckScriptSuccess(lines) | 1000 v9.CheckScriptSuccess(lines) |
997 enddef | 1001 enddef |
998 | 1002 |
999 | 1003 |