Added test for obsolete KT-11631: Couldn't inline method call

#KT-11631 Obsolete
This commit is contained in:
Michael Bogdanov
2016-04-03 14:18:13 +03:00
parent f3f1aa8a15
commit d319811101
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -17,6 +17,8 @@ fun check() {
<!UNREACHABLE_CODE!>val <!UNUSED_VARIABLE!>x<!> =<!> null!!
}
fun <!IMPLICIT_NOTHING_RETURN_TYPE!>nonLocalReturn<!>() = run { return }
class Klass {
fun <!IMPLICIT_NOTHING_RETURN_TYPE!>bar<!>() = null!!
@@ -47,4 +49,4 @@ class Derived : Base {
override val x = null!!
override fun foo() = null!!
}
}
@@ -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