From e41b5fc1c6180e5ff18f2af57663f1876edac025 Mon Sep 17 00:00:00 2001 From: Igor Chevdar Date: Mon, 1 Jun 2020 17:40:16 +0500 Subject: [PATCH] [IR] Turned on a test for K/N + minor refactoring NothingValueException has already been supported in K/N --- .../src/org/jetbrains/kotlin/backend/common/ir/Ir.kt | 3 +-- .../testData/codegen/box/nothingValue/nothingValueException.kt | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/ir/Ir.kt b/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/ir/Ir.kt index 8b5ef4edab8..ce51952c101 100644 --- a/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/ir/Ir.kt +++ b/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/ir/Ir.kt @@ -266,8 +266,7 @@ abstract class Symbols(val context: T, irBuiltIns: abstract val ThrowUninitializedPropertyAccessException: IrSimpleFunctionSymbol - open val ThrowKotlinNothingValueException: IrSimpleFunctionSymbol - get() = TODO("Support KotlinNothingValueException in Kotlin/Native and make this val abstract") + abstract val ThrowKotlinNothingValueException: IrSimpleFunctionSymbol abstract val stringBuilder: IrClassSymbol diff --git a/compiler/testData/codegen/box/nothingValue/nothingValueException.kt b/compiler/testData/codegen/box/nothingValue/nothingValueException.kt index 9db59b442df..f680d56adc6 100644 --- a/compiler/testData/codegen/box/nothingValue/nothingValueException.kt +++ b/compiler/testData/codegen/box/nothingValue/nothingValueException.kt @@ -1,4 +1,4 @@ -// IGNORE_BACKEND: JS, NATIVE +// IGNORE_BACKEND: JS fun something(): T = Any() as T