Add warning for initializers with obsolete syntax
Expected 'init' keyword before class initializer
This commit is contained in:
@@ -9,7 +9,7 @@ class P {
|
||||
|
||||
val other = P();
|
||||
|
||||
{
|
||||
init {
|
||||
x = 23
|
||||
other.x = 4
|
||||
}
|
||||
@@ -33,7 +33,7 @@ fun foo() {
|
||||
|
||||
class R {
|
||||
val p = P();
|
||||
{
|
||||
init {
|
||||
<!INVISIBLE_SETTER!>p.x<!> = 42
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user