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()