GDScript: Disallow type inference with untyped initializer

This commit is contained in:
Dmitrii Maganov
2023-01-13 20:51:29 +02:00
parent 228db366bf
commit a1e0281b45
9 changed files with 20 additions and 9 deletions
@@ -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