Debian Codegraph @

modules/gdscript/tests/scripts/analyzer/features/as.gd

raw
1 func test():
2 var some_bool = 5 as bool
3 var some_int = 5 as int
4 var some_float = 5 as float
5 print(typeof(some_bool))
6 print(typeof(some_int))
7 print(typeof(some_float))
8
9 print()
10
11 var some_bool_typed := 5 as bool
12 var some_int_typed := 5 as int
13 var some_float_typed := 5 as float
14 print(typeof(some_bool_typed))
15 print(typeof(some_int_typed))
16 print(typeof(some_float_typed))