You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Mono/C#: Fix error when parsing nested generics
Also fixed the editor not including the parse error message in the error.
This commit is contained in:
@@ -302,8 +302,10 @@ Error ScriptClassParser::_skip_generic_type_params() {
|
||||
Error err = _skip_generic_type_params();
|
||||
if (err)
|
||||
return err;
|
||||
continue;
|
||||
} else if (tk == TK_OP_GREATER) {
|
||||
tk = get_token();
|
||||
}
|
||||
|
||||
if (tk == TK_OP_GREATER) {
|
||||
return OK;
|
||||
} else if (tk != TK_COMMA) {
|
||||
error_str = "Unexpected token: " + get_token_name(tk);
|
||||
|
||||
Reference in New Issue
Block a user