AA: use simple name of local type as JVM internal name
Otherwise, e.g., if a local type is within an anonymous object, full class id will include that anonymous object too, resulting in invalid type signature for PsiType. ^KT-59533 Fixed
This commit is contained in:
committed by
Ilya Kirillov
parent
2d178e5273
commit
a93bc60655
+25
@@ -0,0 +1,25 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
interface Indexer {
|
||||
fun indexing()
|
||||
}
|
||||
|
||||
interface MyBuilder
|
||||
|
||||
fun build(builder: MyBuilder) {
|
||||
}
|
||||
|
||||
fun test(): Indexer {
|
||||
return object : Indexer {
|
||||
override fun indexing() {
|
||||
class TagData(val name: String) {
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
build(object : MyBuilder {
|
||||
val tags<caret> = mutableListOf<TagData>()
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
KtType: kotlin.collections.MutableList<TagData>
|
||||
PsiType: PsiType:List<TagData>
|
||||
Reference in New Issue
Block a user