OverviewFilesCommitsIssuesDocsReleasesPeers

nvidia-rtx-godot / modules / gdscript / tests / scripts / runtime / features / conversions_from_native_members.gd

12 lines · gd ref:
class Foo extends Node:
	func _init():
		name = 'f'
		var string: String = name
		Utils.check(typeof(string) == TYPE_STRING)
		Utils.check(string == 'f')
		print('ok')

func test():
	var foo := Foo.new()
	foo.free()