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
}
}