Implement members: fix it works correctly if primary constructor has implemented member

#KT-37312 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-03-11 19:21:48 +09:00
committed by Ilya Kirillov
parent 5eabc1117f
commit e455e926aa
8 changed files with 95 additions and 1 deletions
@@ -0,0 +1,13 @@
// "Implement members" "true"
// WITH_RUNTIME
abstract class C {
abstract val p: String?
abstract val q: Int
abstract fun test()
}
<caret>class MyImpl3(
override val p: String? = null
) : C() {
override val q: Int = 0
}