vim9script class Foo var bar: number var _bar: number endclass
:soure %error:
line 5:
E1369: Duplicate variable: _bar
_bar and bar is not duplicate.
9.2.0498
doesn't matter
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
It might not be immediately obvious, but there is an explanation in the help files.
:h E1369
*E1355* *E1369*
(snip...)
It is not possible to use a public and protected member variable with the same name.
For protected member variable, See :h protected-variable.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Thanks. I don't know there is protected member.
I think the error message can be improved, like "E1369: Duplicate protected and public member: _bar and bar".
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()