KT-880 Overload resolution ambiguity

#KT-880 Fixed
This commit is contained in:
Nikolay Krasko
2013-02-08 14:17:25 +04:00
parent c61c8d7fa0
commit 54ae3afcde
2 changed files with 21 additions and 0 deletions
@@ -0,0 +1,16 @@
// KT-880 Overload resolution ambiguity
public trait I {
open fun test() : Unit
}
abstract public class A() {
open public fun test() : Unit {
}
}
public open class T() : A(), I {
open fun main() : Unit {
test() // Test no "Overload resolution ambiguity" is here
}
}
@@ -3217,6 +3217,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/override/kt1862.kt");
}
@TestMetadata("kt880.kt")
public void testKt880() throws Exception {
doTest("compiler/testData/diagnostics/tests/override/kt880.kt");
}
@TestMetadata("MultipleDefaultParametersInSupertypes.kt")
public void testMultipleDefaultParametersInSupertypes() throws Exception {
doTest("compiler/testData/diagnostics/tests/override/MultipleDefaultParametersInSupertypes.kt");