patch 9.0.1083: empty and comment lines in a class cause an error
Problem: Empty and comment lines in a class cause an error.
Solution: Skip empty and comment lines. (closes #11734)
diff --git a/src/testdir/test_vim9_class.vim b/src/testdir/test_vim9_class.vim
index 5ec606e..f45e3fa 100644
--- a/src/testdir/test_vim9_class.vim
+++ b/src/testdir/test_vim9_class.vim
@@ -131,6 +131,7 @@
this.lnum: number
this.col: number
+ # make a nicely formatted string
def ToString(): string
return $'({this.lnum}, {this.col})'
enddef
@@ -155,6 +156,7 @@
this.lnum: number = 1
this.col: number = 1
+ # constructor with only the line number
def new(lnum: number)
this.lnum = lnum
enddef