From 2e75f7f1035bf73b865f2d96a78d0f1f6bd2bad3 Mon Sep 17 00:00:00 2001 From: "Pavel V. Talanov" Date: Mon, 12 Oct 2015 21:47:29 +0300 Subject: [PATCH] Js stdlib: noImpl property has 'Nothing' type --- js/js.libraries/src/core/core.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/js.libraries/src/core/core.kt b/js/js.libraries/src/core/core.kt index f5afbea4c83..df8d2999cb2 100644 --- a/js/js.libraries/src/core/core.kt +++ b/js/js.libraries/src/core/core.kt @@ -3,7 +3,8 @@ package kotlin.js import java.util.*; @native -public val noImpl: T = throw Exception() +public val noImpl: Nothing + get() = throw Exception() @native public fun eval(expr: String): dynamic = noImpl