From 3702089396ec82bb1d1ef18172284cb920c379e7 Mon Sep 17 00:00:00 2001 From: "Pavel V. Talanov" Date: Tue, 28 Apr 2015 16:43:53 +0300 Subject: [PATCH] Minor: Do not throw on getContainingDeclaration() in test Fix build --- .../jvm/runtime/AbstractJvmRuntimeDescriptorLoaderTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/tests/org/jetbrains/kotlin/jvm/runtime/AbstractJvmRuntimeDescriptorLoaderTest.kt b/compiler/tests/org/jetbrains/kotlin/jvm/runtime/AbstractJvmRuntimeDescriptorLoaderTest.kt index 357c265ce93..08e69e7d34c 100644 --- a/compiler/tests/org/jetbrains/kotlin/jvm/runtime/AbstractJvmRuntimeDescriptorLoaderTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/jvm/runtime/AbstractJvmRuntimeDescriptorLoaderTest.kt @@ -197,7 +197,7 @@ public abstract class AbstractJvmRuntimeDescriptorLoaderTest : TestCaseWithTmpdi override fun accept(visitor: DeclarationDescriptorVisitor, data: D): R = visitor.visitPackageViewDescriptor(this, data) - override fun getContainingDeclaration() = throw UnsupportedOperationException() + override fun getContainingDeclaration() = null override fun getOriginal() = throw UnsupportedOperationException() override fun substitute(substitutor: TypeSubstitutor) = throw UnsupportedOperationException() override fun acceptVoid(visitor: DeclarationDescriptorVisitor?) = throw UnsupportedOperationException()