[FIR] Add FUNCTION_DELEGATE_MEMBER_NAME_CLASH

This commit is contained in:
Ivan Kochurkin
2021-09-10 18:00:31 +03:00
committed by teamcityserver
parent a5caa14255
commit 7e7066d75e
10 changed files with 62 additions and 33 deletions
@@ -1,32 +0,0 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun interface F1 {
val functionDelegate: Function<*>? get() = null
fun invoke()
}
fun interface F2 {
fun getFunctionDelegate(): Function<*>? = null
fun invoke()
}
fun interface F3 {
val getFunctionDelegate: Function<*>? get() = null
fun invoke()
}
fun interface F4 {
fun functionDelegate(): Function<*>? = null
fun invoke()
}
fun interface F5 {
val functionDelegate: Any? get() = null
fun invoke()
}
fun interface F6 {
val String.functionDelegate: Function<*>? get() = null
fun getFunctionDelegate(x: Any?): Function<*>? = null
fun invoke()
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun interface F1 {