mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
This reverts commit bf6bb800c4.
This commit is contained in:
1 parent
8b3bb7c5e9
commit
f5300a84e5
55 files changed
+7431
-293
No files matched your search
+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