KT-880 Overload resolution ambiguity
#KT-880 Fixed
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user