KT-6671 Report unused constructor parameters
#KT-6671 fixed
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//KT-657 Semantic checks for when without condition
|
||||
package kt657
|
||||
|
||||
class Pair<A, B>(a: A, b: B)
|
||||
class Pair<A, B>(<!UNUSED_PARAMETER!>a<!>: A, <!UNUSED_PARAMETER!>b<!>: B)
|
||||
|
||||
fun foo() =
|
||||
when {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
package kt234_kt973
|
||||
|
||||
class Pair<A, B>(a: A, b: B)
|
||||
class Pair<A, B>(<!UNUSED_PARAMETER!>a<!>: A, <!UNUSED_PARAMETER!>b<!>: B)
|
||||
|
||||
fun test(t : Pair<Int, Int>) : Int {
|
||||
when (t) {
|
||||
|
||||
Reference in New Issue
Block a user