Debian Codegraph @

src/test/01-Basic/176-return-implicit.ck

raw
1 // test implicit cast in return type
2
3 fun float foo()
4 {
5 // return int in a func that returns float
6 return 3;
7 }
8
9 if( foo() == 3 )
10 <<< "success" >>>;