Modify analysis for property initializer. Add errors about delegated property accessors.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
class Local {
|
||||
fun foo() {
|
||||
val <!UNUSED_VARIABLE!>a<!>: Int <!LOCAL_VARIABLE_WITH_DELEGATE!>by Delegate()<!>
|
||||
}
|
||||
}
|
||||
|
||||
class Delegate {
|
||||
fun get(t: Any?, p: String): Int {
|
||||
t.equals(p) // to avoid UNUSED_PARAMETER warning
|
||||
return 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user