Test for obsolete KT-8133
#KT-8133 Obsolete
This commit is contained in:
@@ -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)
|
||||
+6
@@ -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");
|
||||
|
||||
+6
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user