Resolve annotations on secondary constructors

This commit is contained in:
Denis Zharkov
2015-02-18 10:26:41 +03:00
parent 9be45af267
commit 0dc155d8c9
4 changed files with 41 additions and 0 deletions
@@ -143,6 +143,7 @@ public class BodyResolver {
@NotNull final ConstructorDescriptor descriptor,
@NotNull JetScope bodyDeclaringScope
) {
AnnotationResolver.resolveAnnotationsArguments(constructor.getModifierList(), trace);
assert descriptor.getContainingDeclaration() instanceof ClassDescriptorWithResolutionScopes
: "When resolving body it should be class descriptor with resolution scopes";