function calls from the KotlinLibrary.kt will contain a declaring type of kotlin.Library. Note: there aren't any cases from the tests where a FirDeclarationOrigin.Library that is not from a JVM source comes from the kotlin.Library class, but it does not mean that other libraries may exist. So, it's possible we may need to make further improvements. In the IR the parent field is kotlin, which would result in kotlin{name=arrayOf... instead of kotlinLibraryKt{name=arrayOf. So, when we move to the IR it will require updates to various method type assertions.
Changes:
Kotlin
Library.kt
will contain a declaring type ofkotlin.Library
. Note: there aren't any cases from the tests where aFirDeclarationOrigin.Library
that is not from a JVM source comes from thekotlin.Library
class, but it does not mean that other libraries may exist. So, it's possible we may need to make further improvements. In the IR the parent field iskotlin
, which would result inkotlin{name=arrayOf...
instead ofkotlinLibraryKt{name=arrayOf
. So, when we move to the IR it will require updates to various method type assertions.fixes #526