1
0
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:
Ignacio Etcheverry
2020-01-20 19:08:08 +01:00
parent fa638a290f
commit e4330e33e6
3 changed files with 15 additions and 6 deletions

View File

@@ -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);