Add warning for initializers with obsolete syntax
Expected 'init' keyword before class initializer
This commit is contained in:
@@ -7,7 +7,7 @@ class A {
|
||||
}
|
||||
|
||||
class B() {
|
||||
{
|
||||
init {
|
||||
A().<!INVISIBLE_MEMBER!>a<!> = "Hello"
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ package kt37
|
||||
class C() {
|
||||
private var f: Int
|
||||
|
||||
{
|
||||
init {
|
||||
f = 610
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user