1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Fix ability to overload "script" variable

This commit is contained in:
ocean (they/them)
2022-11-08 17:41:50 -05:00
parent 2846ea1ffa
commit 13be0ab733
6 changed files with 32 additions and 5 deletions

View File

@@ -0,0 +1,6 @@
extends Node
var script: int
func test():
pass

View File

@@ -0,0 +1,2 @@
GDTEST_ANALYZER_ERROR
Member "script" redefined (original in native class 'Node')

View File

@@ -0,0 +1,9 @@
func test():
pass
class A:
func overload_me():
pass
class B extends A:
var overload_me

View File

@@ -0,0 +1,2 @@
GDTEST_ANALYZER_ERROR
The member "overload_me" already exists in parent class A.