virtualx-engine/modules/gdscript/tests/scripts/parser/features/nested_if.gd
Hugo Locurcio c0083c0f90
Add dozens of new integration tests to the GDScript test suite
This also ignores `.out` files in the file format static checks.
2021-09-14 18:42:08 +02:00

57 lines
1.4 KiB
GDScript

func test():
# 20 levels of nesting (and then some).
if true:
print("1")
if true:
print("2")
if true:
print("3")
if true:
print("4")
if true:
print("5")
if true:
print("6")
if true:
print("7")
if true:
print("8")
if true:
print("9")
if true:
print("10")
if true:
print("11")
if true:
print("12")
if true:
print("13")
if true:
print("14")
if true:
print("15")
if true:
print("16")
if true:
print("17")
if true:
print("18")
if true:
print("19")
if true:
print("20")
if false:
print("End")
if true:
if true:
if true:
if true:
if true:
if true:
if true:
if true:
if true:
if true:
if true:
if true:
print("This won't be printed")