comparison src/testdir/test_vim9_class.vim @ 34344:be4389b04043 v9.1.0105

patch 9.1.0105: Style: typos found Commit: https://github.com/vim/vim/commit/e71022082d6a8bd8ec3d7b9dadf3f9ce46ef339c Author: zeertzjq <zeertzjq@outlook.com> Date: Tue Feb 13 20:32:04 2024 +0100 patch 9.1.0105: Style: typos found Problem: Style: typos found Solution: correct them (zeertzjq) closes: #14023 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 13 Feb 2024 20:45:05 +0100
parents 0f2632b04cde
children 5c1a025192ed
comparison
equal deleted inserted replaced
34343:f47ebfc6e979 34344:be4389b04043
65 class Something 65 class Something
66 endclass | echo 'done' 66 endclass | echo 'done'
67 END 67 END
68 v9.CheckSourceFailure(lines, "E488: Trailing characters: | echo 'done'", 3) 68 v9.CheckSourceFailure(lines, "E488: Trailing characters: | echo 'done'", 3)
69 69
70 # Use old "this." prefixed member variable declaration syntax (without intialization) 70 # Use old "this." prefixed member variable declaration syntax (without initialization)
71 lines =<< trim END 71 lines =<< trim END
72 vim9script 72 vim9script
73 class Something 73 class Something
74 this.count: number 74 this.count: number
75 endclass 75 endclass
76 END 76 END
77 v9.CheckSourceFailure(lines, 'E1318: Not a valid command in a class: this.count: number', 3) 77 v9.CheckSourceFailure(lines, 'E1318: Not a valid command in a class: this.count: number', 3)
78 78
79 # Use old "this." prefixed member variable declaration syntax (with intialization) 79 # Use old "this." prefixed member variable declaration syntax (with initialization)
80 lines =<< trim END 80 lines =<< trim END
81 vim9script 81 vim9script
82 class Something 82 class Something
83 this.count: number = 42 83 this.count: number = 42
84 endclass 84 endclass