| 1 |
extends Node |
| 2 |
|
| 3 |
@onready var later_inferred := [1] |
| 4 |
@onready var later_static: Array |
| 5 |
@onready var later_static_with_init: Array = [1] |
| 6 |
@onready var later_untyped = [1] |
| 7 |
|
| 8 |
func test(): |
| 9 |
Utils.check(typeof(later_inferred) == TYPE_ARRAY) |
| 10 |
Utils.check(later_inferred.size() == 0) |
| 11 |
|
| 12 |
Utils.check(typeof(later_static) == TYPE_ARRAY) |
| 13 |
Utils.check(later_static.size() == 0) |
| 14 |
|
| 15 |
Utils.check(typeof(later_static_with_init) == TYPE_ARRAY) |
| 16 |
Utils.check(later_static_with_init.size() == 0) |
| 17 |
|
| 18 |
Utils.check(typeof(later_untyped) == TYPE_NIL) |
| 19 |
|
| 20 |
print("ok") |