GDScript: Allow constant expressions in annotations
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
var num := 1
|
||||
|
||||
@export_range(num, 10) var a
|
||||
|
||||
func test():
|
||||
pass
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_ANALYZER_ERROR
|
||||
Argument 1 of annotation "@export_range" isn't a constant expression.
|
||||
Reference in New Issue
Block a user