KT-6671 Report unused constructor parameters

#KT-6671 fixed
This commit is contained in:
Evgeny Gerashchenko
2015-01-27 19:24:19 +03:00
parent f96f1b8cb0
commit 897854b3dc
49 changed files with 106 additions and 69 deletions
+1 -1
View File
@@ -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) {
+2 -2
View File
@@ -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 -1
View File
@@ -1,5 +1,5 @@
package toplevelObjectDeclarations
open class Foo(y : Int) {
open class Foo(<warning>y</warning> : Int) {
open fun foo() : Int = 1
}
+1 -1
View File
@@ -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