Add warning for initializers with obsolete syntax
Expected 'init' keyword before class initializer
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
class A(w: Int) {
|
||||
var c = w
|
||||
|
||||
{
|
||||
init {
|
||||
c = 81
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user