K2: drop unnecessary attributes when inferring declaration types
Related to KT-62578
This commit is contained in:
committed by
Space Team
parent
90eaf5f70f
commit
cebb6747e3
+1
-1
@@ -1,6 +1,6 @@
|
||||
FILE: test.kt
|
||||
public final fun foo(tag: R|XmlTag|, name: R|kotlin/String|): R|kotlin/collections/List<XmlTag>| {
|
||||
lval result: R|kotlin/collections/List<@NoInfer XmlTag>| = R|<local>/tag|.R|/PsiElement.children|.R|kotlin/collections/filterIsInstance|<R|XmlTag|>().R|kotlin/collections/filter|<R|@NoInfer XmlTag|>(<L> = filter@fun <anonymous>(it: R|@NoInfer XmlTag|): R|kotlin/Boolean| <inline=Inline, kind=UNKNOWN> {
|
||||
lval result: R|kotlin/collections/List<XmlTag>| = R|<local>/tag|.R|/PsiElement.children|.R|kotlin/collections/filterIsInstance|<R|XmlTag|>().R|kotlin/collections/filter|<R|@NoInfer XmlTag|>(<L> = filter@fun <anonymous>(it: R|@NoInfer XmlTag|): R|kotlin/Boolean| <inline=Inline, kind=UNKNOWN> {
|
||||
^ ==(R|<local>/it|.R|/XmlTag.localName|, R|<local>/name|)
|
||||
}
|
||||
)
|
||||
|
||||
+2
-2
@@ -19,13 +19,13 @@ FILE: withInInitializer.kt
|
||||
public final val data: R|First| = R|/First.First|(Int(42))
|
||||
public get(): R|First|
|
||||
|
||||
public final val test: R|kotlin/collections/List<@NoInfer kotlin/Int>| = R|kotlin/with|<R|First|, R|kotlin/collections/List<@NoInfer kotlin/Int>|>(this@R|/Second|.R|/Second.data|, <L> = with@fun R|First|.<anonymous>(): R|kotlin/collections/List<@NoInfer kotlin/Int>| <inline=Inline, kind=EXACTLY_ONCE> {
|
||||
public final val test: R|kotlin/collections/List<kotlin/Int>| = R|kotlin/with|<R|First|, R|kotlin/collections/List<@NoInfer kotlin/Int>|>(this@R|/Second|.R|/Second.data|, <L> = with@fun R|First|.<anonymous>(): R|kotlin/collections/List<@NoInfer kotlin/Int>| <inline=Inline, kind=EXACTLY_ONCE> {
|
||||
^ this@R|/Second|.R|/Second.list|.R|kotlin/collections/filterIsInstance|<R|kotlin/Int|>().R|kotlin/collections/filter|<R|@NoInfer kotlin/Int|>(<L> = filter@fun <anonymous>(it: R|@NoInfer kotlin/Int|): R|kotlin/Boolean| <inline=Inline, kind=UNKNOWN> {
|
||||
^ ==(R|<local>/it|, this@R|special/anonymous|.R|/First.member|)
|
||||
}
|
||||
)
|
||||
}
|
||||
)
|
||||
public get(): R|kotlin/collections/List<@NoInfer kotlin/Int>|
|
||||
public get(): R|kotlin/collections/List<kotlin/Int>|
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user