1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

GDScript: Fix conversions from native members accessed by identifier

This commit is contained in:
Dmitrii Maganov
2023-02-25 10:53:36 +02:00
parent 3863199ab9
commit 281c8c75d3
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
class Foo extends Node:
func _init():
name = 'f'
var string: String = name
assert(typeof(string) == TYPE_STRING)
assert(string == 'f')
print('ok')
func test():
var foo := Foo.new()
foo.free()

View File

@@ -0,0 +1,2 @@
GDTEST_OK
ok