[FIR] Add REIFIED_TYPE_PARAMETER_NO_INLINE check
This commit is contained in:
committed by
TeamCityServer
parent
14fe570a00
commit
5ff82addc9
@@ -1,22 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
//KT-4372 Invalid error position and failing to resolve invoke with receiver from other module
|
||||
|
||||
class Foo<TInner, TOuter> {
|
||||
fun invoke(content: TInner.() -> Unit) {
|
||||
}
|
||||
}
|
||||
|
||||
// comment this function to fix the error below
|
||||
fun <TInner, TOuter> Foo<TInner, TOuter>.invoke(name: String, content: TInner.() -> Unit) {}
|
||||
|
||||
enum class EnumClass(val x: String) {}
|
||||
object Y {
|
||||
val x = javaClass<EnumClass>() // javaClass unresolved in any file in this module
|
||||
}
|
||||
|
||||
//declarations from library
|
||||
val <T> T.javaClass : Class<T>
|
||||
get() = throw Exception()
|
||||
|
||||
fun <reified T> javaClass() : Class<T> = throw Exception()
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
//KT-4372 Invalid error position and failing to resolve invoke with receiver from other module
|
||||
|
||||
Reference in New Issue
Block a user