Add warning for initializers with obsolete syntax
Expected 'init' keyword before class initializer
This commit is contained in:
@@ -4,7 +4,7 @@ fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
|
||||
class Test<in I, out O> {
|
||||
private val i: I = getT()
|
||||
|
||||
;{
|
||||
init {
|
||||
apply(i)
|
||||
apply(this.i)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user