mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 06:40:11 +01:00
21 lines
360 B
Plaintext
21 lines
360 B
Plaintext
********** 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
|