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