KT-6671 Report unused constructor parameters
#KT-6671 fixed
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
val a: Int by A(1)
|
||||
|
||||
class A<T: Any>(i: T) {
|
||||
class A<T: Any>(<!UNUSED_PARAMETER!>i<!>: T) {
|
||||
fun get(t: Any?, p: PropertyMetadata): T {
|
||||
t.equals(p) // to avoid UNUSED_PARAMETER warning
|
||||
throw Exception()
|
||||
|
||||
Reference in New Issue
Block a user