From d3198111014deb41df145cdd71b55e2c0890552e Mon Sep 17 00:00:00 2001 From: Michael Bogdanov Date: Sun, 3 Apr 2016 14:18:13 +0300 Subject: [PATCH] Added test for obsolete KT-11631: Couldn't inline method call #KT-11631 Obsolete --- compiler/testData/diagnostics/tests/implicitNothing.kt | 4 +++- compiler/testData/diagnostics/tests/implicitNothing.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler/testData/diagnostics/tests/implicitNothing.kt b/compiler/testData/diagnostics/tests/implicitNothing.kt index 84235471582..95ea8d1b5a4 100644 --- a/compiler/testData/diagnostics/tests/implicitNothing.kt +++ b/compiler/testData/diagnostics/tests/implicitNothing.kt @@ -17,6 +17,8 @@ fun check() { val x = null!! } +fun nonLocalReturn() = run { return } + class Klass { fun bar() = null!! @@ -47,4 +49,4 @@ class Derived : Base { override val x = null!! override fun foo() = null!! -} +} \ No newline at end of file diff --git a/compiler/testData/diagnostics/tests/implicitNothing.txt b/compiler/testData/diagnostics/tests/implicitNothing.txt index 6d79c4fdc15..8ee22dbfa2b 100644 --- a/compiler/testData/diagnostics/tests/implicitNothing.txt +++ b/compiler/testData/diagnostics/tests/implicitNothing.txt @@ -7,6 +7,7 @@ public fun baz(): kotlin.Nothing public fun check(): kotlin.Unit public fun foo(): kotlin.Nothing public fun gav(): kotlin.Any +public fun nonLocalReturn(): kotlin.Nothing public interface Base { public abstract val x: kotlin.Int