drop deprecated syntax for anonymous initializer blocks
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
|
||||
class Foo() {
|
||||
private val builder = StringBuilder("sdfsd")
|
||||
|
||||
init {
|
||||
}
|
||||
}
|
||||
|
||||
class Foo1() {
|
||||
private val builder = <!NONE_APPLICABLE!>StringBuilder<!>("sdfsd")
|
||||
|
||||
<!DANGLING_FUNCTION_LITERAL_ARGUMENT_SUSPECTED!>{
|
||||
}<!>
|
||||
}
|
||||
|
||||
fun foo() = {
|
||||
<!NONE_APPLICABLE!>println<!>(1)
|
||||
<!DANGLING_FUNCTION_LITERAL_ARGUMENT_SUSPECTED!>{}<!>
|
||||
}
|
||||
|
||||
fun foo1() = {
|
||||
println(1);
|
||||
{}
|
||||
}
|
||||
|
||||
fun println(<!UNUSED_PARAMETER!>i<!> : Int) {}
|
||||
fun println(<!UNUSED_PARAMETER!>s<!> : Byte) {}
|
||||
fun println() {}
|
||||
@@ -1,26 +0,0 @@
|
||||
package
|
||||
|
||||
internal fun foo(): () -> ???
|
||||
internal fun foo1(): () -> () -> kotlin.Unit
|
||||
internal fun println(): kotlin.Unit
|
||||
internal fun println(/*0*/ s: kotlin.Byte): kotlin.Unit
|
||||
internal fun println(/*0*/ i: kotlin.Int): kotlin.Unit
|
||||
|
||||
internal final class Foo {
|
||||
public constructor Foo()
|
||||
private final val builder: java.lang.StringBuilder
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
internal final class Foo1 {
|
||||
public constructor Foo1()
|
||||
private final val builder: [ERROR : Type for StringBuilder("sdfsd")
|
||||
|
||||
{
|
||||
}]
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
package baz
|
||||
|
||||
fun test() {
|
||||
<!NONE_APPLICABLE!>foo<!>(1) <!DANGLING_FUNCTION_LITERAL_ARGUMENT_SUSPECTED!>{}<!>
|
||||
|
||||
foo( <!NONE_APPLICABLE!>foo<!>(1) {} ) //here
|
||||
}
|
||||
|
||||
fun foo(<!UNUSED_PARAMETER!>i<!>: Int) {}
|
||||
|
||||
fun foo() : (i : () -> Unit) -> Unit = {}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
package
|
||||
|
||||
package baz {
|
||||
internal fun foo(): (() -> kotlin.Unit) -> kotlin.Unit
|
||||
internal fun foo(/*0*/ i: kotlin.Int): kotlin.Unit
|
||||
internal fun test(): kotlin.Unit
|
||||
}
|
||||
Reference in New Issue
Block a user