repo.or.cz
/
chuck-blob.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
*** empty log message ***
[chuck-blob.git]
/
v2
/
test
/
p60.ck
blob
c6220fc20805383a6301864591489d2ebf4d9ec5
1
// function declaration before definition ( fail-correct )
2
3
fun int foo();
4
5
fun int bar() {
6
return 4 * foo();
7
}
8
9
fun int foo() {
10
return 5;
11
}
12
13
bar() => int answer;
14
15
if ( answer == 20 ) <<<"success">>>;