plan: 22b.4a fix — int literals are bare tokens, not (lit (int N))

This commit is contained in:
2026-05-09 22:00:55 +02:00
parent fefaa03c76
commit eb06f3bfcc
@@ -501,7 +501,7 @@ Task 1:
(class Foo)
(type (con Int))
(method m
(body (lit (int 5))))))"#;
(body 5))))"#;
let m = parse(src).expect("parse ok");
match &m.defs[0] {
ailang_core::ast::Def::Instance(i) => {
@@ -528,7 +528,7 @@ Task 1:
(class Foo)
(type (con Int))
(doc "instance for ints")
(method m (body (lit (int 7))))))"#;
(method m (body 7))))"#;
let m = parse(src).expect("parse ok");
let i = match &m.defs[0] {
ailang_core::ast::Def::Instance(i) => i,