updated add_class_level_variable() for better duplicate check
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-10-20 20:12:31 +09:00
parent d2b3cc9f71
commit a2b840f41d
2 changed files with 10 additions and 6 deletions

View File

@ -289,11 +289,14 @@ class Kuduro [a b c] {
}
---
class Kuduru [a [b] c] {
class Kuduro [a [b] c] {
var d e
var b ##TODO: should this be prohibited?
var b ##ERROR: syntax error - duplicate instance variable name 'b'
}
---
class Kuduro [a [b] c] {
var d e
var(#class) b ##ERROR: syntax error - duplicate class variable name 'b'