☰
Debian Codegraph
@
1.5.5.8-1
/
/
src
/
test
/
06-Errors
/
error-return-void-class.ck
☽
☼
src/test/06-Errors/error-return-void-class.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
// error case: return value in void function
2
3
class Foo
4
{
5
fun void foo()
6
{
7
// returning value from inside a void function
8
return 5;
9
}
10
}