Don't check DELEGATED_MEMBER_HIDES_SUPERTYPE_OVERRIDE when compiling to 1.0

This commit is contained in:
Mikhael Bogdanov
2017-01-13 13:03:12 +01:00
parent 80f2efb625
commit b88a9025e0
7 changed files with 85 additions and 2 deletions
@@ -0,0 +1,20 @@
// LANGUAGE_VERSION: 1.0
public interface Base {
fun test() = "base fail"
}
public interface Base2 : Base {
override fun test() = "base 2fail"
}
class Delegate : Base {
override fun test(): String {
return "OK"
}
}
fun box(): String {
return object : Base2, Base by Delegate() {
}.test()
}