diff options
-rw-r--r-- | script-beta/parser/luadoc.lua | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/script-beta/parser/luadoc.lua b/script-beta/parser/luadoc.lua index f37e15f6..13d80874 100644 --- a/script-beta/parser/luadoc.lua +++ b/script-beta/parser/luadoc.lua @@ -567,15 +567,7 @@ local function parseGeneric() end if checkToken('symbol', ':', 1) then nextToken() - object.extends = parseName('doc.extends.name', object) - if not object.extends then - pushError { - type = 'LUADOC_MISS_GENERIC_EXTENDS_NAME', - start = getFinish(), - finish = getFinish(), - } - return nil - end + object.extends = parseType(object) end object.finish = getFinish() result.generics[#result.generics+1] = object |