mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:34:42 +01:00
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:
committed by
GitHub
co-authored by
Geoff Romer
parent
7e91fbc276
commit
2620ba066d
+2
-2
@@ -4,8 +4,8 @@
|
||||
|
||||
// Test type checking of global variable. Error expected.
|
||||
|
||||
var flag: Int = true;
|
||||
var flag: i32 = true;
|
||||
|
||||
fn main() -> Int {
|
||||
fn main() -> i32 {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user