godot/modules/gdscript/tests/scripts
George Marques 1ebcb58e69
GDScript: Check if method signature matches the parent
To guarantee polymorphism, a method signature must be compatible with
the parent. This checks if:

1. Return type is the same.
2. The subclass method takes at least the same amount of parameters.
3. The matching parameters have the same type.
4. If the subclass takes more parameters, all of the extra ones have a
default value.
5. If the superclass has default values, so must have the subclass.

There's a few test cases to ensure this holds up.
2022-03-06 11:16:20 -03:00
..
analyzer GDScript: Check if method signature matches the parent 2022-03-06 11:16:20 -03:00
parser Add test cases for accessing parent elements from child class 2022-03-04 12:41:20 -05:00
runtime GDScript: Allow tests to run on release builds 2022-02-03 13:32:33 -03:00
.gitignore Add runner for GDScript testing 2021-04-08 09:34:59 -03:00
project.godot Add runner for GDScript testing 2021-04-08 09:34:59 -03:00