plan: 22b.4a fix — int literals are bare tokens, not (lit (int N))
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user