Unused import: do not report for 'invoke' function import that is used from same file

#KT-24281 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-10-08 23:43:53 +09:00
committed by Vladimir Dolzhenko
parent 8aa120576b
commit 8c4fdd1edd
5 changed files with 70 additions and 3 deletions
+17
View File
@@ -0,0 +1,17 @@
// "Optimize imports" "true"
// WITH_RUNTIME
package ppp
import ppp.invoke<caret>
object Bar
object Foo {
// val bar = Bar
}
fun Foo.bar() = 1
operator fun Bar.invoke() = 2
fun main() {
println(Foo.bar())
}