I forgot to plumb this in through the parser. Pretty easy to add, hopefully I didn't forget any weird corner scope cases here.
11 lines
154 B
Plaintext
11 lines
154 B
Plaintext
-- main.mcl --
|
|
import "fmt"
|
|
|
|
$s = fmt.printf("%v", func($x) {
|
|
len($x)
|
|
}("helloworld")) # inline lambda call
|
|
|
|
test [$s,] {}
|
|
-- OUTPUT --
|
|
Vertex: test[10]
|