Move Int parsing to i32 for #543 (#700)

Note this doesn't support other sizes or types, it just errors on them.

Co-authored-by: Geoff Romer <gromer@google.com>
This commit is contained in:
Jon MeowandGeoff Romer authored and GitHub committed 2021-08-05 09:34:12 -07:00
1 parent 7e91fbc276
commit 2620ba066d
100 files changed
+212 -202

No files matched your search

@@ -6,7 +6,7 @@ fn apply[T:! Type, U:! Type](f: fnty (T) -> U, x: T) -> U {
return f(x);
}
fn positive(x: Bool) -> Int {
fn positive(x: Bool) -> i32 {
if (x) {
return 2;
} else {
@@ -14,6 +14,6 @@ fn positive(x: Bool) -> Int {
}
}
fn main() -> Int {
fn main() -> i32 {
return apply(positive, false);
}