| 1 |
@static_unload |
| 2 |
|
| 3 |
static var foo = "bar" |
| 4 |
|
| 5 |
static func _static_init(): |
| 6 |
print("static init called") |
| 7 |
prints("foo is", foo) |
| 8 |
|
| 9 |
func test(): |
| 10 |
var _lambda = func _static_init(): |
| 11 |
print("lambda does not conflict with static constructor") |
| 12 |
|
| 13 |
print("done") |