mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Merge pull request #78178 from dalexeev/gds-add-non-tool-extends-tool-error
GDScript: Add warning if non-`@tool` class extends `@tool` class
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
extends "./non_tool_extends_tool.notest.gd"
|
||||
|
||||
class InnerClass extends "./non_tool_extends_tool.notest.gd":
|
||||
pass
|
||||
|
||||
func test():
|
||||
pass
|
||||
@@ -0,0 +1 @@
|
||||
@tool
|
||||
@@ -0,0 +1,9 @@
|
||||
GDTEST_OK
|
||||
>> WARNING
|
||||
>> Line: 1
|
||||
>> MISSING_TOOL
|
||||
>> The base class script has the "@tool" annotation, but this script does not have it.
|
||||
>> WARNING
|
||||
>> Line: 3
|
||||
>> MISSING_TOOL
|
||||
>> The base class script has the "@tool" annotation, but this script does not have it.
|
||||
@@ -0,0 +1,9 @@
|
||||
@warning_ignore("missing_tool")
|
||||
extends "./non_tool_extends_tool.notest.gd"
|
||||
|
||||
@warning_ignore("missing_tool")
|
||||
class InnerClass extends "./non_tool_extends_tool.notest.gd":
|
||||
pass
|
||||
|
||||
func test():
|
||||
pass
|
||||
@@ -0,0 +1 @@
|
||||
GDTEST_OK
|
||||
Reference in New Issue
Block a user