default_arg_convertable.gd 104 B

123456
  1. func check(arg: float = 3):
  2. return typeof(arg) == typeof(3.0)
  3. func test():
  4. if check():
  5. print('ok')