Test for obsolete KT-8133

#KT-8133 Obsolete
This commit is contained in:
Michael Bogdanov
2015-09-10 12:43:27 +03:00
parent a5f7df3ebf
commit 908228a3cf
4 changed files with 29 additions and 0 deletions
@@ -0,0 +1,14 @@
import test.*
interface foo {
fun bar(): String
}
fun box(): String {
val baz = "OK".myLet {
object : foo {
override fun bar() = it
}
}
return baz.bar()
}
@@ -0,0 +1,3 @@
package test
public inline fun <T, R> T.myLet(f: (T) -> R): R = f(this)
@@ -97,6 +97,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
doTestMultiFileWithInlineCheck(fileName);
}
@TestMetadata("kt8133.1.kt")
public void testKt8133() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/anonymousObject/kt8133.1.kt");
doTestMultiFileWithInlineCheck(fileName);
}
@TestMetadata("kt9064.1.kt")
public void testKt9064() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/anonymousObject/kt9064.1.kt");
@@ -97,6 +97,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
doBoxTestWithInlineCheck(fileName);
}
@TestMetadata("kt8133.1.kt")
public void testKt8133() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/anonymousObject/kt8133.1.kt");
doBoxTestWithInlineCheck(fileName);
}
@TestMetadata("kt9064.1.kt")
public void testKt9064() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/anonymousObject/kt9064.1.kt");