Add warning for initializers with obsolete syntax
Expected 'init' keyword before class initializer
This commit is contained in:
@@ -50,7 +50,7 @@ class TestPCParameters(w : Int, <!UNUSED_PARAMETER!>x<!> : Int, val y : Int, var
|
||||
|
||||
val xx = w
|
||||
|
||||
{
|
||||
init {
|
||||
w + 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user