Commit 131f7fd0 authored by Robert Bradshaw's avatar Robert Bradshaw

Better errors for unknown type arguments.

parent f46ceccb
......@@ -1137,7 +1137,7 @@ class TemplatedTypeNode(CBaseTypeNode):
type = template_node.analyse_as_type(env)
if type is None:
error(template_node.pos, "unknown type in template argument")
return error_type
type = error_type
template_types.append(type)
self.type = base_type.specialize_here(self.pos, template_types)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment