initial commit, 4.5 stable
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# https://github.com/godotengine/godot/pull/69620
|
||||
|
||||
var a: int = 1
|
||||
|
||||
func shadow_regular_assignment(a: Variant, b: Variant) -> void:
|
||||
print(a)
|
||||
print(self.a)
|
||||
a = b
|
||||
print(a)
|
||||
print(self.a)
|
||||
|
||||
|
||||
var v := Vector2(0.0, 0.0)
|
||||
|
||||
func shadow_subscript_assignment(v: Vector2, x: float) -> void:
|
||||
print(v)
|
||||
print(self.v)
|
||||
v.x += x
|
||||
print(v)
|
||||
print(self.v)
|
||||
|
||||
|
||||
func test():
|
||||
shadow_regular_assignment('a', 'b')
|
||||
shadow_subscript_assignment(Vector2(1.0, 1.0), 5.0)
|
Reference in New Issue
Block a user