You've already forked godot
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:
@@ -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()
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_OK
|
||||
ok
|
||||
Reference in New Issue
Block a user