test for obsolete task
#KT-1358 fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
//KT-1358 Overload resolution ambiguity with autocast and generic function
|
||||||
|
package d
|
||||||
|
|
||||||
|
fun bar(a: Any?) {
|
||||||
|
if (a != null) {
|
||||||
|
a.foo() //overload resolution ambiguity
|
||||||
|
a.sure() //overload resolution ambiguity
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun <T : Any> T?.foo() {}
|
||||||
@@ -1375,6 +1375,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
|||||||
doTest("compiler/testData/diagnostics/tests/inference/regressions/kt1145.kt");
|
doTest("compiler/testData/diagnostics/tests/inference/regressions/kt1145.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("kt1358.kt")
|
||||||
|
public void testKt1358() throws Exception {
|
||||||
|
doTest("compiler/testData/diagnostics/tests/inference/regressions/kt1358.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt1410.kt")
|
@TestMetadata("kt1410.kt")
|
||||||
public void testKt1410() throws Exception {
|
public void testKt1410() throws Exception {
|
||||||
doTest("compiler/testData/diagnostics/tests/inference/regressions/kt1410.kt");
|
doTest("compiler/testData/diagnostics/tests/inference/regressions/kt1410.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user