Add warning for initializers with obsolete syntax
Expected 'init' keyword before class initializer
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
fun f(a: Any?) {
|
||||
if (a is B) {
|
||||
class C : X(<!DEBUG_INFO_SMARTCAST!>a<!>) {
|
||||
{
|
||||
init {
|
||||
<!DEBUG_INFO_SMARTCAST!>a<!>.foo()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user