The generics of a class of anonymous instances should never be inferred

This commit is contained in:
Dave Halter
2018-10-05 19:06:41 +02:00
parent 9313fb9021
commit 43c04a71a8

View File

@@ -304,6 +304,9 @@ class AnonymousInstance(TreeInstance):
var_args=AnonymousInstanceArguments(self),
)
def get_annotated_class_object(self):
return self.class_context # This is the default.
class CompiledInstanceName(compiled.CompiledName):