| 1 |
class BaseClass: |
| 2 |
func _get_property_list(): |
| 3 |
return {"property" : "definition"} |
| 4 |
|
| 5 |
class SuperClassMethodsRecognized extends BaseClass: |
| 6 |
func _init(): |
| 7 |
# Recognizes super class methods. |
| 8 |
var _x = _get_property_list() |
| 9 |
|
| 10 |
class SuperMethodsRecognized extends BaseClass: |
| 11 |
func _get_property_list(): |
| 12 |
# Recognizes super method. |
| 13 |
var result = super() |
| 14 |
result["new"] = "new" |
| 15 |
return result |
| 16 |
|
| 17 |
func test(): |
| 18 |
var test1 = SuperClassMethodsRecognized.new() |
| 19 |
print(test1._get_property_list()) # Calls base class's method. |
| 20 |
var test2 = SuperMethodsRecognized.new() |
| 21 |
print(test2._get_property_list()) |