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

@@ -3,7 +3,7 @@ use "libc.zig";
// purposefully conflicting function with main.zig
// but it's private so it should be OK
fn private_function() {
puts("it works!");
puts(c"it works!");
}
pub fn print_text() {