Add warning for initializers with obsolete syntax
Expected 'init' keyword before class initializer
This commit is contained in:
@@ -19,7 +19,7 @@ package toplevelObjectDeclarations
|
||||
val x = A.foo()
|
||||
|
||||
val y = object : Foo(x) {
|
||||
{
|
||||
init {
|
||||
x + 12
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user