Debian Codegraph @

modules/gdscript/tests/scripts/runtime/features/conversions_from_native_members.gd

raw
1 class Foo extends Node:
2 func _init():
3 name = 'f'
4 var string: String = name
5 Utils.check(typeof(string) == TYPE_STRING)
6 Utils.check(string == 'f')
7 print('ok')
8
9 func test():
10 var foo := Foo.new()
11 foo.free()