// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER //KT-4372 Invalid error position and failing to resolve invoke with receiver from other module class Foo { fun invoke(content: TInner.() -> Unit) { } } // comment this function to fix the error below fun Foo.invoke(name: String, content: TInner.() -> Unit) {} enum class EnumClass(val x: String) {} object Y { val x = javaClass() // javaClass unresolved in any file in this module } //declarations from library val T.javaClass : Class get() = throw Exception() fun <reified T> javaClass() : Class = throw Exception()