Add diagnostics for get/set methods of property delegate
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
val a: Int by A(1)
|
||||
|
||||
class A<T: Any>(i: T) {
|
||||
fun get(t: Any?, p: String): T {
|
||||
t.equals(p) // to avoid UNUSED_PARAMETER warning
|
||||
throw Exception()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user