Skip to content

Commit

Permalink
Oops, fix another error
Browse files Browse the repository at this point in the history
  • Loading branch information
edubart committed Sep 27, 2020
1 parent bab0c6b commit 1f2c922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nelua/analyzer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ function visitors.GenericType(context, node)
if not symbol or not symbol.type or not symbol.type.is_type then
node:raisef("in generic evaluation: symbol '%s' is not a type", name)
end
generic_type = symbol.value and symbol.value.is_generic and symbol.value.generic
generic_type = (symbol.value and symbol.value.is_generic) and symbol.value or symbol.value.generic
if not generic_type or not traits.is_type(generic_type) or not generic_type.is_generic then
node:raisef("in generic evaluation: symbol '%s' of type '%s' cannot generalize", name, symbol.type)
end
Expand Down

0 comments on commit 1f2c922

Please sign in to comment.