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