[FIR] update reversed testData
^KT-56543
This commit is contained in:
committed by
Space Team
parent
1c5aa6c45b
commit
6170d83301
+2
-2
@@ -1,4 +1,4 @@
|
||||
FILE: implicitTypes.kt
|
||||
FILE: implicitTypes.reversed.kt
|
||||
public final fun <T, R> use(x: R|(T) -> R|): R|(T) -> R| {
|
||||
^use R|<local>/x|
|
||||
}
|
||||
@@ -11,6 +11,6 @@ FILE: implicitTypes.kt
|
||||
public final fun loop1(): R|(ERROR CLASS: Cannot infer argument for type parameter T) -> ERROR CLASS: Cannot infer argument for type parameter R| {
|
||||
^loop1 R|/use<Inapplicable(INAPPLICABLE): /use>#|<<ERROR TYPE REF: Cannot infer argument for type parameter T>, <ERROR TYPE REF: Cannot infer argument for type parameter R>>(::<Unresolved reference: loop2>#)
|
||||
}
|
||||
public final fun loop2(): <ERROR TYPE REF: cycle> {
|
||||
public final fun loop2(): R|(ERROR CLASS: Cannot infer argument for type parameter T) -> ERROR CLASS: Cannot infer argument for type parameter R| {
|
||||
^loop2 R|/loop1|()
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -4,4 +4,4 @@ fun foo() = use(::bar)
|
||||
fun bar(x: String) = 1
|
||||
|
||||
fun loop1() = <!INAPPLICABLE_CANDIDATE!>use<!>(::<!UNRESOLVED_REFERENCE!>loop2<!>)
|
||||
fun loop2() = <!TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM!>loop1()<!>
|
||||
fun loop2() = loop1()
|
||||
|
||||
+3
-3
@@ -22,8 +22,8 @@ FILE: A.kt
|
||||
public get(): R|kotlin/Number|
|
||||
|
||||
public final fun rest(): R|kotlin/Unit| {
|
||||
lval aI: R|kotlin/Int| = R|/A.A|().R|/A.a|.R|kotlin/Int.plus|(Int(10))
|
||||
lval bI: R|kotlin/Int| = R|/A.A|().R|/A.b|.R|kotlin/Int.plus|(Int(20))
|
||||
lval aI: <ERROR TYPE REF: Unresolved name: plus> = R|/A.A|().R|/A.a|.<Unresolved name: plus>#(Int(10))
|
||||
lval bI: <ERROR TYPE REF: Unresolved name: plus> = R|/A.A|().R|/A.b|.<Unresolved name: plus>#(Int(20))
|
||||
lval cI: <ERROR TYPE REF: Unresolved name: plus> = R|/A.A|().R|/A.c|.<Unresolved name: plus>#(Int(30))
|
||||
lval dI: <ERROR TYPE REF: Unresolved name: plus> = R|/A.A|().R|/A.d|.<Unresolved name: plus>#(Int(40))
|
||||
}
|
||||
@@ -31,7 +31,7 @@ FILE: A.kt
|
||||
}
|
||||
public final fun test(): R|kotlin/Unit| {
|
||||
lval aA: <ERROR TYPE REF: Unresolved name: plus> = R|/A.A|().R|/A.a|.<Unresolved name: plus>#(Int(10))
|
||||
lval bA: R|kotlin/Int| = R|/A.A|().R|/A.b|.R|kotlin/Int.plus|(Int(20))
|
||||
lval bA: <ERROR TYPE REF: Unresolved name: plus> = R|/A.A|().R|/A.b|.<Unresolved name: plus>#(Int(20))
|
||||
lval cA: <ERROR TYPE REF: Unresolved name: plus> = R|/A.A|().R|/A.c|.<Unresolved name: plus>#(Int(30))
|
||||
lval dA: <ERROR TYPE REF: Unresolved name: plus> = R|/A.A|().R|/A.d|.<Unresolved name: plus>#(Int(40))
|
||||
}
|
||||
|
||||
+3
-3
@@ -15,8 +15,8 @@ class A {
|
||||
<!WRONG_MODIFIER_TARGET!>public<!> field = 5
|
||||
|
||||
fun rest() {
|
||||
val aI = A().a + 10
|
||||
val bI = A().b + 20
|
||||
val aI = A().a <!UNRESOLVED_REFERENCE!>+<!> 10
|
||||
val bI = A().b <!UNRESOLVED_REFERENCE!>+<!> 20
|
||||
val cI = A().c <!UNRESOLVED_REFERENCE!>+<!> 30
|
||||
val dI = A().d <!UNRESOLVED_REFERENCE!>+<!> 40
|
||||
}
|
||||
@@ -24,7 +24,7 @@ class A {
|
||||
|
||||
fun test() {
|
||||
val aA = A().a <!UNRESOLVED_REFERENCE!>+<!> 10
|
||||
val bA = A().b + 20
|
||||
val bA = A().b <!UNRESOLVED_REFERENCE!>+<!> 20
|
||||
val cA = A().c <!UNRESOLVED_REFERENCE!>+<!> 30
|
||||
val dA = A().d <!UNRESOLVED_REFERENCE!>+<!> 40
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
FILE: backingFieldWithSmartTypeParameters.kt
|
||||
FILE: backingFieldWithSmartTypeParameters.reversed.kt
|
||||
public final val items: R|kotlin/collections/List<kotlin/String>|
|
||||
private <explicit backing field>: R|kotlin/collections/MutableList<kotlin/String>| = R|kotlin/collections/mutableListOf|<R|kotlin/String|>()
|
||||
public get(): R|kotlin/collections/List<kotlin/String>|
|
||||
public final fun test(): R|kotlin/Unit| {
|
||||
R|/items|.R|SubstitutionOverride<kotlin/collections/MutableList.add: R|kotlin/Boolean|>|(String(one more item))
|
||||
R|/items|.<Unresolved name: add>#(String(one more item))
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,5 +2,5 @@ val items: List<String>
|
||||
field = mutableListOf()
|
||||
|
||||
fun test() {
|
||||
items.add("one more item")
|
||||
items.<!UNRESOLVED_REFERENCE!>add<!>("one more item")
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
FILE: filePrivateBackingFieldAccess.kt
|
||||
FILE: filePrivateBackingFieldAccess.reversed.kt
|
||||
public final val list: R|kotlin/collections/List<kotlin/String>|
|
||||
private <explicit backing field>: R|kotlin/collections/MutableList<kotlin/String>| = R|kotlin/collections/mutableListOf|<R|kotlin/String|>()
|
||||
public get(): R|kotlin/collections/List<kotlin/String>|
|
||||
public final fun add(s: R|kotlin/String|): R|kotlin/Unit| {
|
||||
R|/list|.R|SubstitutionOverride<kotlin/collections/MutableList.add: R|kotlin/Boolean|>|(R|<local>/s|)
|
||||
R|/list|.<Unresolved name: add>#(R|<local>/s|)
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,5 +2,5 @@ val list: List<String>
|
||||
field = mutableListOf<String>()
|
||||
|
||||
fun add(s: String) {
|
||||
list.add(s)
|
||||
list.<!UNRESOLVED_REFERENCE!>add<!>(s)
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
FILE: propertyTypeNarrowing.kt
|
||||
FILE: propertyTypeNarrowing.reversed.kt
|
||||
public final class A : R|kotlin/Any| {
|
||||
public constructor(): R|A| {
|
||||
super<R|kotlin/Any|>()
|
||||
@@ -8,8 +8,8 @@ FILE: propertyTypeNarrowing.kt
|
||||
private <explicit backing field>: R|kotlin/Int| = Int(4)
|
||||
public get(): R|kotlin/Number|
|
||||
|
||||
public final fun test(): R|kotlin/Int| {
|
||||
^test this@R|/A|.R|/A.it|.R|kotlin/Int.plus|(Int(3))
|
||||
public final fun test(): <ERROR TYPE REF: Unresolved name: plus> {
|
||||
^test this@R|/A|.R|/A.it|.<Unresolved name: plus>#(Int(3))
|
||||
}
|
||||
|
||||
public final val p: R|kotlin/Int| = Int(5)
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ class A {
|
||||
val it: Number
|
||||
field = 4
|
||||
|
||||
fun test() = it + 3
|
||||
fun test() = it <!UNRESOLVED_REFERENCE!>+<!> 3
|
||||
|
||||
val p = 5
|
||||
get() = field
|
||||
|
||||
Reference in New Issue
Block a user