Files
2025-01-30 22:41:17 -05:00

26 lines
366 B
Plaintext

// Single expression body.
Fn.new { System.print("ok") }.call() // expect: ok
// Curly body.
Fn.new {
System.print("ok") // expect: ok
}.call()
// Multiple statements.
Fn.new {
System.print("1") // expect: 1
System.print("2") // expect: 2
}.call()
// Extra newlines.
Fn.new {
System.print("1") // expect: 1
System.print("2") // expect: 2
}.call()