add number literal type
it gets implicitly casted to whatever is needed. closes #24
This commit is contained in:
@@ -22,6 +22,6 @@ struct Foo {
|
||||
|
||||
fn test_foo(foo : Foo) {
|
||||
if foo.b {
|
||||
print_str("OK" as string);
|
||||
print_str("OK\n" as string);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user