mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
This reverts commit bf6bb800c4.
This commit is contained in:
+26
-1
@@ -1 +1,26 @@
|
||||
result: 0
|
||||
********** source program **********
|
||||
fn f Int: x -> Int {
|
||||
return 0;
|
||||
|
||||
}
|
||||
fn main () -> Int {
|
||||
var Int: a = 0;
|
||||
var Int: b = 1;
|
||||
f(0 = a);
|
||||
b = a;
|
||||
return b;
|
||||
|
||||
}
|
||||
********** type checking **********
|
||||
--- step exp Int --->
|
||||
--- step exp Int --->
|
||||
--- step exp Int --->
|
||||
--- step exp Int --->
|
||||
--- step exp Int --->
|
||||
--- step exp Int --->
|
||||
--- step exp Int --->
|
||||
--- step exp Int --->
|
||||
15: type error in call
|
||||
expected: Int
|
||||
actual: Tuple(0 = Int)
|
||||
EXIT CODE: 255
|
||||
|
||||
Reference in New Issue
Block a user