Debian Codegraph @

src/test/06-Errors/error-return-not-all-4.ck

raw
1 // error case: missing return
2 // thanks @phlub on ChucK Community Discord Server
3
4 class Foo
5 {
6 int chord[];
7 int trailingNotes[];
8
9 fun static Foo make( int c[], int t[])
10 {
11 Foo a;
12 c @=> a.chord;
13 t @=> a.trailingNotes;
14 // return a;
15 }
16 }
17
18 <<< Foo.make( [1,2], [3,4] ) >>>;