| 1 |
# https://github.com/godotengine/godot/issues/90086 |
| 2 |
|
| 3 |
class MyObj: |
| 4 |
var obj : WeakRef |
| 5 |
|
| 6 |
func test(): |
| 7 |
var obj_1 = MyObj.new() |
| 8 |
var obj_2 = MyObj.new() |
| 9 |
Utils.check(obj_2.get_reference_count() == 1) |
| 10 |
obj_1.set(&"obj", obj_2) |
| 11 |
Utils.check(obj_2.get_reference_count() == 1) |