You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update modules/gdscript/gdscript_parser.cpp
Co-authored-by: Danil Alexeev <[email protected]>
Improve error message
Add tests
Add errors for other removed keywords
Remove very old keywords and improve wording of errors
push_error(R"(The "master" keyword was removed in Godot 4. Use the "@rpc" annotation with "any_peer" and perform a check inside the function instead.)");
push_error(R"(The "mastersync" keyword was removed in Godot 4. Use the "@rpc" annotation with "any_peer" and "call_local", and perform a check inside the function instead.)");
1108
+
} else {
1109
+
push_error(vformat(R"(Unexpected %s in class body.)", previous.get_debug_name()));
1110
+
}
1091
1111
break;
1092
1112
}
1093
1113
if (token.type != GDScriptTokenizer::Token::STATIC) {
0 commit comments