Fix bugs, add propper tests
This commit is contained in:
6
test.mcl
6
test.mcl
@@ -7,9 +7,9 @@ struct Foo {
|
||||
b: &str
|
||||
}
|
||||
|
||||
fn Foo.new(a: usize, b: &str) -> &Foo {
|
||||
fn Foo.new(a1: usize, b: &str) -> &Foo {
|
||||
return &Foo {
|
||||
a: a,
|
||||
a: a1,
|
||||
b: b
|
||||
};
|
||||
}
|
||||
@@ -31,7 +31,7 @@ fn main() -> i32 {
|
||||
}
|
||||
|
||||
for (let i = 0; i < 10; i += 1) {
|
||||
print("nyaaa");
|
||||
puts("nyaaa");
|
||||
if (i > 7) {
|
||||
break;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user