K2: add more tests/fix augmented assignment case around KT-59748
This commit is contained in:
committed by
Space Team
parent
f20e2dec31
commit
5836a8aa0b
+4
@@ -46,6 +46,7 @@ FILE: arraySetWithOperation.kt
|
||||
}
|
||||
public final fun test_1(a: R|A<B>|): R|kotlin/Unit| {
|
||||
R|<local>/a|.R|SubstitutionOverride</A.get: R|B|>|(Int(0)).R|/B.plusAssign|(R|/B.B|())
|
||||
Unit
|
||||
}
|
||||
public final fun test_2(a: R|A<C>|): R|kotlin/Unit| {
|
||||
{
|
||||
@@ -54,10 +55,13 @@ FILE: arraySetWithOperation.kt
|
||||
R|<local>/<array>|.R|SubstitutionOverride</A.set: R|kotlin/Unit|>|(R|<local>/<index_0>|, R|<local>/<array>|.R|SubstitutionOverride</A.get: R|C|>|(R|<local>/<index_0>|).R|/C.plus|(R|/C.C|()))
|
||||
}
|
||||
|
||||
Unit
|
||||
}
|
||||
public final fun test_3(a: R|A<D>|): R|kotlin/Unit| {
|
||||
R|<local>/a|.R|SubstitutionOverride</A.get: R|D|>|(Int(0)).<Operator overload ambiguity. Compatible candidates: [/D.plusAssign, /A.set]>#(R|/D.D|())
|
||||
Unit
|
||||
}
|
||||
public final fun test_4(b: R|B|): R|kotlin/Unit| {
|
||||
R|<local>/b|.<Unresolved name: get>#(Int(0)).<Unresolved name: +=>#(R|/B.B|())
|
||||
Unit
|
||||
}
|
||||
|
||||
+15
-2
@@ -20,8 +20,10 @@ FILE: arraySetWithPlusAssign.kt
|
||||
Q|kotlin/Unit|
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
public final class B : R|kotlin/Any| {
|
||||
public constructor(): R|B| {
|
||||
@@ -47,8 +49,10 @@ FILE: arraySetWithPlusAssign.kt
|
||||
Q|kotlin/Unit|
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
public final class C : R|kotlin/Any| {
|
||||
public constructor(): R|C| {
|
||||
@@ -77,8 +81,10 @@ FILE: arraySetWithPlusAssign.kt
|
||||
Q|kotlin/Unit|
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
public final class D : R|kotlin/Any| {
|
||||
public constructor(): R|D| {
|
||||
@@ -108,8 +114,10 @@ FILE: arraySetWithPlusAssign.kt
|
||||
Q|kotlin/Unit|
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
public final class E : R|kotlin/Any| {
|
||||
public constructor(): R|E| {
|
||||
@@ -118,15 +126,17 @@ FILE: arraySetWithPlusAssign.kt
|
||||
|
||||
}
|
||||
public final fun test_5(x: R|E|): R|kotlin/Unit| {
|
||||
R|<local>/x|.<Unresolved name: get>#(Int(1)).<Unresolved name: +=>#(fun <anonymous>(): <ERROR TYPE REF: Unresolved name: plusAssign> <inline=Unknown> {
|
||||
R|<local>/x|.<Unresolved name: get>#(Int(1)).<Unresolved name: +=>#(fun <anonymous>(): R|kotlin/Unit| <inline=Unknown> {
|
||||
R|/someCallInsideLambda|()
|
||||
^ R|<local>/x|.<Unresolved name: get>#(Int(1)).<Unresolved name: +=>#(fun <anonymous>(): R|kotlin/Unit| <inline=Unknown> {
|
||||
R|<local>/x|.<Unresolved name: get>#(Int(1)).<Unresolved name: +=>#(fun <anonymous>(): R|kotlin/Unit| <inline=Unknown> {
|
||||
R|/someCallInsideLambda|()
|
||||
Q|kotlin/Unit|
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
public final class F : R|kotlin/Any| {
|
||||
public constructor(): R|F| {
|
||||
@@ -154,6 +164,7 @@ FILE: arraySetWithPlusAssign.kt
|
||||
^ String(please choose String)
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
public final class G : R|kotlin/Any| {
|
||||
public constructor(): R|G| {
|
||||
@@ -192,10 +203,12 @@ FILE: arraySetWithPlusAssign.kt
|
||||
))
|
||||
}
|
||||
|
||||
Unit
|
||||
}
|
||||
))
|
||||
}
|
||||
|
||||
Unit
|
||||
}
|
||||
public final fun someCallInsideLambda(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
+30
@@ -46,34 +46,49 @@ FILE: exponentialArraySetWithPlusAssign.kt
|
||||
Q|kotlin/Unit|
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
public final class D : R|kotlin/Any| {
|
||||
public constructor(): R|D| {
|
||||
@@ -129,34 +144,49 @@ FILE: exponentialArraySetWithPlusAssign.kt
|
||||
Q|kotlin/Unit|
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
)
|
||||
Unit
|
||||
}
|
||||
public final fun someCallInsideLambda(): R|kotlin/Unit| {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user