Input:
func test_warnings():
@warning_ignore("unused_local_constant") const unused_local_constant = 1
Error: the input GDScript code contains parse errors
This code is fine:
func test_warnings():
@warning_ignore("unused_local_constant") var unused_local_constant = 1
This is also fine (but it gets formatted into the input code and you get the same error when formatting again):
func test_warnings():
@warning_ignore("unused_local_constant")
const unused_local_constant = 1
Input:
Error:
the input GDScript code contains parse errorsThis code is fine:
This is also fine (but it gets formatted into the input code and you get the same error when formatting again):