KT-6671 Report unused constructor parameters
#KT-6671 fixed
This commit is contained in:
@@ -164,7 +164,7 @@ abstract class B1(
|
||||
|
||||
class B2() : B1(1, "r") {}
|
||||
|
||||
abstract class B3(i: Int) {
|
||||
abstract class B3(<warning>i</warning>: Int) {
|
||||
}
|
||||
|
||||
fun foo(<warning>a</warning>: B3) {
|
||||
|
||||
@@ -14,7 +14,7 @@ class NoPC {
|
||||
class WithPC0() {
|
||||
}
|
||||
|
||||
class WithPC1(a : Int) {
|
||||
class WithPC1(<warning>a</warning> : Int) {
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ class Foo() : <error>WithPC0</error>(), <error>this</error>() {
|
||||
|
||||
}
|
||||
|
||||
class WithCPI_Dup(x : Int) {
|
||||
class WithCPI_Dup(<warning>x</warning> : Int) {
|
||||
<error>var x : Int</error>
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package toplevelObjectDeclarations
|
||||
open class Foo(y : Int) {
|
||||
open class Foo(<warning>y</warning> : Int) {
|
||||
open fun foo() : Int = 1
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package unresolved
|
||||
|
||||
class Pair<A, B>(a: A, b: B)
|
||||
class Pair<A, B>(<warning>a</warning>: A, <warning>b</warning>: B)
|
||||
|
||||
fun testGenericArgumentsCount() {
|
||||
val <warning>p1</warning>: Pair<error><Int></error> = Pair(2, 2)
|
||||
|
||||
@@ -40,9 +40,9 @@
|
||||
|
||||
}
|
||||
|
||||
<info>open</info> class Super(i : Int)
|
||||
<info>open</info> class Super(<warning>i</warning> : Int)
|
||||
|
||||
class TestPCParameters(w : Int, x : Int, val <info>y</info> : Int, var <info>z</info> : Int) : Super(w) {
|
||||
class TestPCParameters(w : Int, <warning>x</warning> : Int, val <info>y</info> : Int, var <info>z</info> : Int) : Super(w) {
|
||||
|
||||
val <info>xx</info> = w
|
||||
|
||||
|
||||
Reference in New Issue
Block a user