Debian Codegraph @

src/test/06-Errors/error-string-func-concat-1.ck

raw
1 // error case: check for string + [function]
2 // https://github.com/ccrma/chuck/issues/162
3
4 class Foo
5 {
6 // a function
7 fun string getFoo()
8 {
9 return "foo";
10 }
11 }
12
13 // make a foo
14 Foo f;
15
16 // add string to function reference (instead of calling function)
17 <<< " " + f.getFoo >>>;