[FE] Prohibit missed MUST_BE_INITIALIZED when there is no primary constructor

^KT-58472 Fixed
Review: https://jetbrains.team/p/kt/reviews/9967
This commit is contained in:
Nikita Bobko
2023-05-05 17:53:25 +02:00
parent ac40010501
commit de8c3826c2
41 changed files with 934 additions and 60 deletions
@@ -33,8 +33,8 @@ class SecondDerived : Second() {
override fun foo() = y
}
open class Third {
open var x: String
abstract class Third {
abstract var x: String
constructor() {
x = "X" // Non-final property access