Add test for obsolete issue
#KT-36121 Obsolete
This commit is contained in:
Vendored
+26
@@ -0,0 +1,26 @@
|
||||
// !LANGUAGE: +NewInference
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
interface JsonParser
|
||||
interface JsonCodingParser : JsonParser
|
||||
|
||||
var result = "fail"
|
||||
|
||||
fun JsonCodingParser.parseValue(source: String): Any = source
|
||||
fun JsonParser.parseValue(source: String): Any = TODO()
|
||||
|
||||
fun testDecoding(decode: (String) -> Any) {
|
||||
result = decode("OK") as String
|
||||
}
|
||||
|
||||
class Test {
|
||||
fun fooTest() {
|
||||
val foo: JsonCodingParser = object : JsonCodingParser {}
|
||||
testDecoding(foo::parseValue)
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
Test().fooTest()
|
||||
return result
|
||||
}
|
||||
+5
@@ -1982,6 +1982,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/boundJvmFieldInInterfaceCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundReferenceToOverloadedFunction.kt")
|
||||
public void testBoundReferenceToOverloadedFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/boundReferenceToOverloadedFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("captureVarInInitBlock.kt")
|
||||
public void testCaptureVarInInitBlock() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/captureVarInInitBlock.kt");
|
||||
|
||||
+5
@@ -1982,6 +1982,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/boundJvmFieldInInterfaceCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundReferenceToOverloadedFunction.kt")
|
||||
public void testBoundReferenceToOverloadedFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/boundReferenceToOverloadedFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("captureVarInInitBlock.kt")
|
||||
public void testCaptureVarInInitBlock() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/captureVarInInitBlock.kt");
|
||||
|
||||
+5
@@ -1962,6 +1962,11 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/boundJvmFieldInInterfaceCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundReferenceToOverloadedFunction.kt")
|
||||
public void testBoundReferenceToOverloadedFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/boundReferenceToOverloadedFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("captureVarInInitBlock.kt")
|
||||
public void testCaptureVarInInitBlock() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/captureVarInInitBlock.kt");
|
||||
|
||||
+5
@@ -1962,6 +1962,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/boundJvmFieldInInterfaceCompanion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundReferenceToOverloadedFunction.kt")
|
||||
public void testBoundReferenceToOverloadedFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/boundReferenceToOverloadedFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("captureVarInInitBlock.kt")
|
||||
public void testCaptureVarInInitBlock() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/captureVarInInitBlock.kt");
|
||||
|
||||
Generated
+5
@@ -1422,6 +1422,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/arrayGetIntrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundReferenceToOverloadedFunction.kt")
|
||||
public void testBoundReferenceToOverloadedFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/boundReferenceToOverloadedFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("captureVarInInitBlock.kt")
|
||||
public void testCaptureVarInInitBlock() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/captureVarInInitBlock.kt");
|
||||
|
||||
+5
@@ -1422,6 +1422,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/arrayGetIntrinsic.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("boundReferenceToOverloadedFunction.kt")
|
||||
public void testBoundReferenceToOverloadedFunction() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/boundReferenceToOverloadedFunction.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("captureVarInInitBlock.kt")
|
||||
public void testCaptureVarInInitBlock() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/callableReference/bound/captureVarInInitBlock.kt");
|
||||
|
||||
Reference in New Issue
Block a user