godot/modules/gdscript/tests/scripts/parser/warnings/integer_division.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

11 lines
178 B
GDScript

func test():
# This should emit a warning.
var __ = 5 / 2
# These should not emit warnings.
__ = float(5) / 2
__ = 5 / float(2)
__ = 5.0 / 2
__ = 5 / 2.0
__ = 5.0 / 2.0