lang: Add more tests for class and include
This commit is contained in:
10
lang/interpret_test/TestAstFunc2/class-shadowing1/main.mcl
Normal file
10
lang/interpret_test/TestAstFunc2/class-shadowing1/main.mcl
Normal file
@@ -0,0 +1,10 @@
|
||||
$msg = "a"
|
||||
class shadowme($msg) {
|
||||
$msg = "c"
|
||||
if true {
|
||||
$msg = "d" # this is used!
|
||||
test $msg {}
|
||||
}
|
||||
}
|
||||
|
||||
include shadowme("b")
|
||||
Reference in New Issue
Block a user