Add warning for initializers with obsolete syntax
Expected 'init' keyword before class initializer
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
class C(a: Int, b: Int, c: Int, d: Int, <!UNUSED_PARAMETER!>e<!>: Int = d, val f: String) {
|
||||
{
|
||||
init {
|
||||
a + a
|
||||
}
|
||||
|
||||
val g = b
|
||||
|
||||
{
|
||||
init {
|
||||
c + c
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user