drop deprecated syntax for anonymous initializer blocks
This commit is contained in:
@@ -1,64 +0,0 @@
|
||||
annotation class Ann3
|
||||
annotation class Ann4
|
||||
|
||||
class D {
|
||||
Ann3 init {
|
||||
|
||||
}
|
||||
Ann4 init {
|
||||
class Q {
|
||||
init {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class E {
|
||||
companion object {
|
||||
init {
|
||||
|
||||
}
|
||||
init {}
|
||||
}
|
||||
}
|
||||
|
||||
fun foo() = 1
|
||||
class F {
|
||||
val a1 = foo()
|
||||
|
||||
init {
|
||||
|
||||
}
|
||||
|
||||
val a2 = foo()
|
||||
|
||||
init {
|
||||
|
||||
}
|
||||
|
||||
val a3 = foo(); // el
|
||||
/* abc */init {
|
||||
|
||||
}
|
||||
|
||||
val a4 = foo() // el
|
||||
|
||||
;/* abc */
|
||||
|
||||
init {
|
||||
|
||||
}
|
||||
|
||||
val a5 = foo()
|
||||
/* abc */
|
||||
|
||||
init {
|
||||
|
||||
}
|
||||
|
||||
val a6 = foo();
|
||||
init {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
// "Add 'init' keyword in whole project" "true"
|
||||
|
||||
annotation class Ann1
|
||||
annotation class Ann2
|
||||
|
||||
class A {
|
||||
Ann1 Ann2 init {
|
||||
class Q {
|
||||
init {
|
||||
|
||||
}
|
||||
Ann2 init {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Ann1 init {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
Ann1 Ann2 init {
|
||||
class Q {
|
||||
init {
|
||||
|
||||
}
|
||||
Ann2 init {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
init {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
// "Add 'init' keyword in whole project" "true"
|
||||
|
||||
annotation class Ann1
|
||||
annotation class Ann2
|
||||
|
||||
class A {
|
||||
Ann1 Ann2 <caret>{
|
||||
class Q {
|
||||
{
|
||||
|
||||
}
|
||||
Ann2 {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Ann1 {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
Ann1 Ann2 {
|
||||
class Q {
|
||||
init {
|
||||
|
||||
}
|
||||
Ann2 {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
annotation class Ann3
|
||||
annotation class Ann4
|
||||
|
||||
class D {
|
||||
Ann3 init {
|
||||
|
||||
}
|
||||
Ann4 {
|
||||
class Q {
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class E {
|
||||
companion object {
|
||||
init {
|
||||
|
||||
}
|
||||
{}
|
||||
}
|
||||
}
|
||||
|
||||
fun foo() = 1
|
||||
class F {
|
||||
val a1 = foo();
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
val a2 = foo()
|
||||
|
||||
;{
|
||||
|
||||
}
|
||||
|
||||
val a3 = foo(); // el
|
||||
/* abc */{
|
||||
|
||||
}
|
||||
|
||||
val a4 = foo() // el
|
||||
|
||||
;/* abc */{
|
||||
|
||||
}
|
||||
|
||||
val a5 = foo()
|
||||
/* abc */;{
|
||||
|
||||
}
|
||||
|
||||
val a6 = foo();
|
||||
init {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user