GDScript: Fix @warning_ignore annotation issues
This commit is contained in:
parent
61282068f4
commit
ef1909fca3
25 changed files with 603 additions and 209 deletions
|
|
@ -2,4 +2,4 @@ GDTEST_OK
|
|||
>> WARNING
|
||||
>> Line: 8
|
||||
>> INCOMPATIBLE_TERNARY
|
||||
>> Values of the ternary conditional are not mutually compatible.
|
||||
>> Values of the ternary operator are not mutually compatible.
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
func test():
|
||||
1 if true else 2
|
||||
print(1) if true else print(2)
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 2
|
||||
>> STANDALONE_TERNARY
|
||||
>> Standalone ternary operator: the return value is being discarded.
|
||||
>> WARNING
|
||||
>> Line: 3
|
||||
>> STANDALONE_TERNARY
|
||||
>> Standalone ternary operator: the return value is being discarded.
|
||||
1
|
||||
Loading…
Add table
Add a link
Reference in a new issue