parser(match): add MVP type patterns (IntegerBox(x)/StringBox(s)) via AST If-chain; keep literal-only path using PeekExpr; add smoke app (apps/tests/match_type_pattern_basic.nyash); build + stage-2 smokes green
This commit is contained in:
13
apps/tests/unified_members_basic.nyash
Normal file
13
apps/tests/unified_members_basic.nyash
Normal file
@ -0,0 +1,13 @@
|
||||
box Greeter {
|
||||
name: StringBox = "Nyash"
|
||||
greeting: StringBox => "Hello " + me.name
|
||||
}
|
||||
|
||||
static box Main {
|
||||
main(args) {
|
||||
local g = new Greeter()
|
||||
print(g.greeting)
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user