Quick-fix for DELEGATED_MEMBER_HIDES_SUPERTYPE_OVERRIDE added #KT-15966 Fixed

This commit is contained in:
Mikhail Glukhikh
2017-02-15 20:45:34 +03:00
parent b83b534374
commit 80063b6f91
17 changed files with 349 additions and 9 deletions
@@ -0,0 +1,19 @@
// "Specify override for 'foo(): Unit' explicitly" "false"
// ACTION: Convert to secondary constructor
// ACTION: Create test
// ACTION: Make primary constructor internal
// ACTION: Make primary constructor private
// ACTION: Move 'C' to separate file
// ACTION: Rename file to C.kt
interface A {
fun foo()
}
class W(val a: A)
open class B : A {
override fun foo() {}
}
class C<caret>(w: W) : B(), A by w.a