☰
Debian Codegraph
@
1.5.5.8-1
/
/
src
/
test
/
01-Basic
/
176-return-implicit.ck
☽
☼
src/test/01-Basic/176-return-implicit.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
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" >>>;