Restore UNUSED_* diagnostics to relevant tests.
This commit is contained in:
committed by
Dmitriy Novozhilov
parent
303d5ece96
commit
1da35029a6
+8
-8
@@ -1,7 +1,7 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: +UNUSED_PARAMETER
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
class C(a: Int, b: Int, c: Int, d: Int, e: Int = d, val f: String) {
|
||||
class C(a: Int, b: Int, c: Int, d: Int, <!UNUSED_PARAMETER!>e<!>: Int = d, val f: String) {
|
||||
init {
|
||||
a + a
|
||||
}
|
||||
@@ -13,15 +13,15 @@ class C(a: Int, b: Int, c: Int, d: Int, e: Int = d, val f: String) {
|
||||
}
|
||||
}
|
||||
|
||||
fun f(a: Int, b: Int, c: Int = b) {
|
||||
fun f(a: Int, b: Int, <!UNUSED_PARAMETER!>c<!>: Int = b) {
|
||||
a + a
|
||||
}
|
||||
|
||||
fun Any.getValue(thisRef: Any?, prop: KProperty<*>): String = ":)"
|
||||
fun Any.setValue(thisRef: Any?, prop: KProperty<*>, value: String) {
|
||||
fun Any.getValue(<!UNUSED_PARAMETER!>thisRef<!>: Any?, <!UNUSED_PARAMETER!>prop<!>: KProperty<*>): String = ":)"
|
||||
fun Any.setValue(<!UNUSED_PARAMETER!>thisRef<!>: Any?, <!UNUSED_PARAMETER!>prop<!>: KProperty<*>, <!UNUSED_PARAMETER!>value<!>: String) {
|
||||
}
|
||||
|
||||
fun Any.provideDelegate(thisRef: Any?, prop: KProperty<*>) {
|
||||
fun Any.provideDelegate(<!UNUSED_PARAMETER!>thisRef<!>: Any?, <!UNUSED_PARAMETER!>prop<!>: KProperty<*>) {
|
||||
}
|
||||
|
||||
operator fun Int.getValue(thisRef: Any?, prop: KProperty<*>): String = ":)"
|
||||
@@ -33,10 +33,10 @@ operator fun Int.provideDelegate(thisRef: Any?, prop: KProperty<*>) {
|
||||
}
|
||||
|
||||
|
||||
fun get(p: Any) {
|
||||
fun get(<!UNUSED_PARAMETER!>p<!>: Any) {
|
||||
}
|
||||
|
||||
fun set(p: Any) {
|
||||
fun set(<!UNUSED_PARAMETER!>p<!>: Any) {
|
||||
}
|
||||
|
||||
fun foo(s: String) {
|
||||
|
||||
Reference in New Issue
Block a user