add number literal type

it gets implicitly casted to whatever is needed.

closes #24
This commit is contained in:
Andrew Kelley
2015-12-14 02:46:37 -07:00
parent 3d8eb10897
commit e411467e1d
17 changed files with 892 additions and 235 deletions

View File

@@ -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);
}
}