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