Add test for obsolete issue
#KT-17341 Obsolete #KT-32958 Obsolete
This commit is contained in:
+5
@@ -2758,6 +2758,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/resolveEqualsOperatorWithAnyExpectedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("resolveReferenceAgainstKFunctionAndKPrpoerty.kt")
|
||||
public void testResolveReferenceAgainstKFunctionAndKPrpoerty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/resolveReferenceAgainstKFunctionAndKPrpoerty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valVsFun.kt")
|
||||
public void testValVsFun() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/valVsFun.kt");
|
||||
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
// FIR_IDENTICAL
|
||||
// WITH_RUNTIME
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun <T, R> foo(x: kotlin.reflect.KFunction1<T, R>) {}
|
||||
fun <T, R> foo(x: kotlin.reflect.KProperty1<T, R>) {}
|
||||
|
||||
class Sample {
|
||||
fun bar() {}
|
||||
fun bar(x: Int) {}
|
||||
}
|
||||
|
||||
class A {
|
||||
val foo = "hello"
|
||||
fun foo(b: Boolean) = 1
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(Sample::bar)
|
||||
foo(String::toInt)
|
||||
|
||||
foo<A, String>(A::foo)
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package
|
||||
|
||||
public fun </*0*/ T, /*1*/ R> foo(/*0*/ x: kotlin.reflect.KFunction1<T, R>): kotlin.Unit
|
||||
public fun </*0*/ T, /*1*/ R> foo(/*0*/ x: kotlin.reflect.KProperty1<T, R>): kotlin.Unit
|
||||
public fun test(): kotlin.Unit
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public final val foo: kotlin.String = "hello"
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public final fun foo(/*0*/ b: kotlin.Boolean): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class Sample {
|
||||
public constructor Sample()
|
||||
public final fun bar(): kotlin.Unit
|
||||
public final fun bar(/*0*/ x: kotlin.Int): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
@@ -2765,6 +2765,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTestWithFirVali
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/resolveEqualsOperatorWithAnyExpectedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("resolveReferenceAgainstKFunctionAndKPrpoerty.kt")
|
||||
public void testResolveReferenceAgainstKFunctionAndKPrpoerty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/resolveReferenceAgainstKFunctionAndKPrpoerty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valVsFun.kt")
|
||||
public void testValVsFun() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/valVsFun.kt");
|
||||
|
||||
Generated
+5
@@ -2760,6 +2760,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/resolveEqualsOperatorWithAnyExpectedType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("resolveReferenceAgainstKFunctionAndKPrpoerty.kt")
|
||||
public void testResolveReferenceAgainstKFunctionAndKPrpoerty() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/resolveReferenceAgainstKFunctionAndKPrpoerty.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("valVsFun.kt")
|
||||
public void testValVsFun() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/callableReference/resolve/valVsFun.kt");
|
||||
|
||||
Generated
+10
@@ -9654,6 +9654,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
runTest("compiler/testData/codegen/box/funInterface/multimodule.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nonAbstractMethod.kt")
|
||||
public void testNonAbstractMethod() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/funInterface/nonAbstractMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableSam.kt")
|
||||
public void testNullableSam() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/funInterface/nullableSam.kt");
|
||||
@@ -12621,6 +12626,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
public void testTostring() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/intrinsics/tostring.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("trimMarginWithBlankString.kt")
|
||||
public void testTrimMarginWithBlankString() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/intrinsics/trimMarginWithBlankString.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/box/ir")
|
||||
|
||||
Reference in New Issue
Block a user