mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Merge pull request #71349 from vonagam/disallow-infer-on-weak
GDScript: Disallow type inference with untyped initializer
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
func test():
|
||||
var one_0 = 0
|
||||
one_0 = 1
|
||||
var one_1 := one_0
|
||||
print(one_1)
|
||||
|
||||
var two: Variant = 0
|
||||
two += 2
|
||||
print(two)
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
GDTEST_OK
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
|
||||
Reference in New Issue
Block a user