diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/scopes/WriteThroughScope.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/scopes/WriteThroughScope.java index 81bc6a6bb6d..687c18a948e 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/scopes/WriteThroughScope.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/scopes/WriteThroughScope.java @@ -56,8 +56,6 @@ public class WriteThroughScope extends WritableScopeWithImports { @Override @NotNull public DeclarationDescriptor getContainingDeclaration() { - checkMayRead(); - return writableWorker.getContainingDeclaration(); }