func_call_interpolation.gravity 198 B

12345678910111213
  1. #unittest {
  2. name: "Function call within string interpolation.";
  3. result: "foo returns 82";
  4. };
  5. func foo() {
  6. return 82;
  7. }
  8. func main() {
  9. var s = "foo returns \(foo())";
  10. return s;
  11. }