1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Merge pull request #73915 from vonagam/fix-conversions-from-native-member

GDScript: Fix conversions from native members accessed by identifier
This commit is contained in:
Rémi Verschelde
2023-02-26 19:02:27 +01:00
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