test for obsolete task

#KT-1358 fixed
This commit is contained in:
Svetlana Isakova
2012-08-17 15:10:26 +04:00
parent 1c763dabe2
commit ffc256f805
2 changed files with 16 additions and 0 deletions
@@ -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");
}
@TestMetadata("kt1358.kt")
public void testKt1358() throws Exception {
doTest("compiler/testData/diagnostics/tests/inference/regressions/kt1358.kt");
}
@TestMetadata("kt1410.kt")
public void testKt1410() throws Exception {
doTest("compiler/testData/diagnostics/tests/inference/regressions/kt1410.kt");