basic.go 234 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // RUN: llgo -o %t %s // RUN: %t 2>&1 | FileCheck %s // CHECK: abc package main func cat(a, b string) func(string) string { return func(c string) string { return a + b + c } } func main() { f := cat("a", "b") println(f("c")) }