Do not report unused parameters for actual constructors
Extract common part for functions and constructors in processUnusedParameter
This commit is contained in:
+5
@@ -12,6 +12,7 @@ expect class Bar3()
|
||||
expect class Bar4()
|
||||
expect class Bar5()
|
||||
expect class Bar6()
|
||||
expect class Bar7(s: String)
|
||||
|
||||
// MODULE: m2-jvm(m1-common)
|
||||
|
||||
@@ -48,3 +49,7 @@ actual class Bar5 {
|
||||
class <!ACTUAL_MISSING!>Bar6<!> {
|
||||
actual constructor()
|
||||
}
|
||||
|
||||
actual class Bar7 actual constructor(s: String) {
|
||||
constructor() : this("")
|
||||
}
|
||||
|
||||
+15
@@ -43,6 +43,13 @@ public final expect class Bar6 {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final expect class Bar7 {
|
||||
public constructor Bar7(/*0*/ s: kotlin.String)
|
||||
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
|
||||
}
|
||||
|
||||
public final expect class Foo1 {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -105,6 +112,14 @@ public final class Bar6 {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final actual class Bar7 {
|
||||
public constructor Bar7()
|
||||
public constructor Bar7(/*0*/ s: kotlin.String)
|
||||
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
|
||||
}
|
||||
|
||||
public final actual class Foo1 {
|
||||
public constructor Foo1(/*0*/ s: kotlin.String)
|
||||
public final val s: kotlin.String
|
||||
|
||||
Reference in New Issue
Block a user