[Tests] Make build green again
This commit is contained in:
committed by
TeamCityServer
parent
8ec418e90f
commit
f9e6365461
Vendored
-1
@@ -1,5 +1,4 @@
|
|||||||
// TARGET_BACKEND: JVM_IR
|
// TARGET_BACKEND: JVM_IR
|
||||||
// IGNORE_BACKEND_FIR: JVM_IR
|
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
val ok = "OK"
|
val ok = "OK"
|
||||||
|
|||||||
+4
-4
@@ -17,9 +17,9 @@ fun supertypeContextual() {}
|
|||||||
|
|
||||||
context(C1, C2)
|
context(C1, C2)
|
||||||
fun test() {
|
fun test() {
|
||||||
supertypeMember()
|
<!UNRESOLVED_REFERENCE!>supertypeMember<!>()
|
||||||
member()
|
<!UNRESOLVED_REFERENCE!>member<!>()
|
||||||
supertypeExtension()
|
<!UNRESOLVED_REFERENCE!>supertypeExtension<!>()
|
||||||
supertypeExtensionGeneric()
|
<!UNRESOLVED_REFERENCE!>supertypeExtensionGeneric<!>()
|
||||||
supertypeContextual()
|
supertypeContextual()
|
||||||
}
|
}
|
||||||
+10
-10
@@ -13,36 +13,36 @@ fun <T> f(lazy1: Lazy<Int>, lazy2: Lazy<CharSequence>, lazyT: Lazy<T>, lazyLazyT
|
|||||||
with(lazy1) {
|
with(lazy1) {
|
||||||
with(lazy2) {
|
with(lazy2) {
|
||||||
test1()
|
test1()
|
||||||
test2()
|
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>test2<!>()
|
||||||
test3()
|
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>test3<!>()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
with(lazy2) {
|
with(lazy2) {
|
||||||
with(lazy1) {
|
with(lazy1) {
|
||||||
test1()
|
test1()
|
||||||
test2()
|
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>test2<!>()
|
||||||
test3()
|
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>test3<!>()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
with(lazyT) {
|
with(lazyT) {
|
||||||
with(lazy1) {
|
with(lazy1) {
|
||||||
test1()
|
test1()
|
||||||
test2()
|
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>test2<!>()
|
||||||
test3()
|
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>test3<!>()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
with(lazyLazyT) {
|
with(lazyLazyT) {
|
||||||
with(lazy1) {
|
with(lazy1) {
|
||||||
test1()
|
test1()
|
||||||
test2()
|
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>test2<!>()
|
||||||
test3()
|
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>test3<!>()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
with(lazy1) {
|
with(lazy1) {
|
||||||
with(lazyLazyT) {
|
with(lazyLazyT) {
|
||||||
test1()
|
test1()
|
||||||
test2()
|
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>test2<!>()
|
||||||
test3()
|
<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>test3<!>()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+2
-2
@@ -6,7 +6,7 @@ class B : A
|
|||||||
fun testLocalFunction() {
|
fun testLocalFunction() {
|
||||||
context(A)
|
context(A)
|
||||||
fun local() {
|
fun local() {
|
||||||
f()
|
<!UNRESOLVED_REFERENCE!>f<!>()
|
||||||
}
|
}
|
||||||
with(B()) {
|
with(B()) {
|
||||||
local()
|
local()
|
||||||
@@ -18,7 +18,7 @@ fun testLocalClass() {
|
|||||||
context(A)
|
context(A)
|
||||||
class Local {
|
class Local {
|
||||||
fun local() {
|
fun local() {
|
||||||
f()
|
<!UNRESOLVED_REFERENCE!>f<!>()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
with(B()) {
|
with(B()) {
|
||||||
|
|||||||
-3
@@ -1,3 +0,0 @@
|
|||||||
context(
|
|
||||||
<!SYNTAX!><!>fun foo() {
|
|
||||||
}
|
|
||||||
+1
@@ -1,3 +1,4 @@
|
|||||||
|
// FIR_IDENTICAL
|
||||||
context(
|
context(
|
||||||
<!SYNTAX!><!>fun foo() {
|
<!SYNTAX!><!>fun foo() {
|
||||||
}
|
}
|
||||||
+1
-1
@@ -2,5 +2,5 @@ class A(val a: String?)
|
|||||||
|
|
||||||
context(A) fun f() {
|
context(A) fun f() {
|
||||||
if (<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!> == null) return
|
if (<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!> == null) return
|
||||||
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.<!UNRESOLVED_REFERENCE!>length<!>
|
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.length
|
||||||
}
|
}
|
||||||
+4
-4
@@ -3,16 +3,16 @@ class B(val b: Any)
|
|||||||
class C(val c: Any)
|
class C(val c: Any)
|
||||||
|
|
||||||
context(labelAInt@A<Int>, A<String>, labelB@B) fun f() {
|
context(labelAInt@A<Int>, A<String>, labelB@B) fun f() {
|
||||||
<!UNRESOLVED_LABEL!>this@labelAInt<!>.<!UNRESOLVED_REFERENCE!>a<!>.<!UNRESOLVED_REFERENCE!>toFloat<!>()
|
<!UNRESOLVED_LABEL!>this@labelAInt<!>.<!UNRESOLVED_REFERENCE!>a<!>.toFloat()
|
||||||
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.<!UNRESOLVED_REFERENCE!>length<!>
|
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.length
|
||||||
<!UNRESOLVED_LABEL!>this@labelB<!>.<!UNRESOLVED_REFERENCE!>b<!>
|
<!UNRESOLVED_LABEL!>this@labelB<!>.<!UNRESOLVED_REFERENCE!>b<!>
|
||||||
<!UNRESOLVED_LABEL!>this@B<!>
|
<!UNRESOLVED_LABEL!>this@B<!>
|
||||||
}
|
}
|
||||||
|
|
||||||
context(labelAInt@A<Int>, A<String>, labelB@B) val C.p: Int
|
context(labelAInt@A<Int>, A<String>, labelB@B) val C.p: Int
|
||||||
get() {
|
get() {
|
||||||
<!UNRESOLVED_LABEL!>this@labelAInt<!>.<!UNRESOLVED_REFERENCE!>a<!>.<!UNRESOLVED_REFERENCE!>toFloat<!>()
|
<!UNRESOLVED_LABEL!>this@labelAInt<!>.<!UNRESOLVED_REFERENCE!>a<!>.toFloat()
|
||||||
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.<!UNRESOLVED_REFERENCE!>length<!>
|
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.length
|
||||||
<!UNRESOLVED_LABEL!>this@B<!>
|
<!UNRESOLVED_LABEL!>this@B<!>
|
||||||
<!UNRESOLVED_LABEL!>this@labelB<!>.<!UNRESOLVED_REFERENCE!>b<!>
|
<!UNRESOLVED_LABEL!>this@labelB<!>.<!UNRESOLVED_REFERENCE!>b<!>
|
||||||
<!UNRESOLVED_LABEL!>this@C<!>.<!UNRESOLVED_REFERENCE!>c<!>
|
<!UNRESOLVED_LABEL!>this@C<!>.<!UNRESOLVED_REFERENCE!>c<!>
|
||||||
|
|||||||
+2
-2
@@ -3,13 +3,13 @@ class B(val b: Any)
|
|||||||
class C(val c: Any)
|
class C(val c: Any)
|
||||||
|
|
||||||
context(A<Int>, A<String>, B) fun f() {
|
context(A<Int>, A<String>, B) fun f() {
|
||||||
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.<!UNRESOLVED_REFERENCE!>length<!>
|
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.length
|
||||||
<!UNRESOLVED_LABEL!>this@B<!>.<!UNRESOLVED_REFERENCE!>b<!>
|
<!UNRESOLVED_LABEL!>this@B<!>.<!UNRESOLVED_REFERENCE!>b<!>
|
||||||
<!NO_THIS!>this<!>
|
<!NO_THIS!>this<!>
|
||||||
}
|
}
|
||||||
|
|
||||||
context(A<Int>, A<String>, B) fun C.f() {
|
context(A<Int>, A<String>, B) fun C.f() {
|
||||||
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.<!UNRESOLVED_REFERENCE!>length<!>
|
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.length
|
||||||
<!UNRESOLVED_LABEL!>this@B<!>.<!UNRESOLVED_REFERENCE!>b<!>
|
<!UNRESOLVED_LABEL!>this@B<!>.<!UNRESOLVED_REFERENCE!>b<!>
|
||||||
<!UNRESOLVED_LABEL!>this@C<!>.<!UNRESOLVED_REFERENCE!>c<!>
|
<!UNRESOLVED_LABEL!>this@C<!>.<!UNRESOLVED_REFERENCE!>c<!>
|
||||||
this@f.c
|
this@f.c
|
||||||
|
|||||||
+5
-5
@@ -2,16 +2,16 @@ class A<T>(val a: T)
|
|||||||
class B(val b: Any)
|
class B(val b: Any)
|
||||||
class C(val c: Any)
|
class C(val c: Any)
|
||||||
|
|
||||||
context(A<Int>, A<String>, B) var p: Int
|
<!MUST_BE_INITIALIZED!>context(A<Int>, A<String>, B) var p: Int<!>
|
||||||
get() {
|
get() {
|
||||||
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.<!UNRESOLVED_REFERENCE!>toDouble<!>()
|
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.toDouble()
|
||||||
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.<!UNRESOLVED_REFERENCE!>length<!>
|
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.length
|
||||||
<!UNRESOLVED_LABEL!>this@B<!>.<!UNRESOLVED_REFERENCE!>b<!>
|
<!UNRESOLVED_LABEL!>this@B<!>.<!UNRESOLVED_REFERENCE!>b<!>
|
||||||
<!NO_THIS!>this<!>
|
<!NO_THIS!>this<!>
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
set(value) {
|
set(value) {
|
||||||
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.<!UNRESOLVED_REFERENCE!>length<!>
|
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.length
|
||||||
<!UNRESOLVED_LABEL!>this@B<!>.<!UNRESOLVED_REFERENCE!>b<!>
|
<!UNRESOLVED_LABEL!>this@B<!>.<!UNRESOLVED_REFERENCE!>b<!>
|
||||||
<!NO_THIS!>this<!>
|
<!NO_THIS!>this<!>
|
||||||
field = value
|
field = value
|
||||||
@@ -19,7 +19,7 @@ context(A<Int>, A<String>, B) var p: Int
|
|||||||
|
|
||||||
context(A<Int>, A<String>, B) val C.p: Int
|
context(A<Int>, A<String>, B) val C.p: Int
|
||||||
get() {
|
get() {
|
||||||
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.<!UNRESOLVED_REFERENCE!>length<!>
|
<!UNRESOLVED_LABEL!>this@A<!>.<!UNRESOLVED_REFERENCE!>a<!>.length
|
||||||
<!UNRESOLVED_LABEL!>this@B<!>.<!UNRESOLVED_REFERENCE!>b<!>
|
<!UNRESOLVED_LABEL!>this@B<!>.<!UNRESOLVED_REFERENCE!>b<!>
|
||||||
<!UNRESOLVED_LABEL!>this@C<!>.<!UNRESOLVED_REFERENCE!>c<!>
|
<!UNRESOLVED_LABEL!>this@C<!>.<!UNRESOLVED_REFERENCE!>c<!>
|
||||||
this@p.c
|
this@p.c
|
||||||
|
|||||||
+1
-1
@@ -7,5 +7,5 @@ context(T)
|
|||||||
fun <T> T.f(t: B<T>) {}
|
fun <T> T.f(t: B<T>) {}
|
||||||
|
|
||||||
fun Int.main(a: A, b: B<String>) {
|
fun Int.main(a: A, b: B<String>) {
|
||||||
a.<!INAPPLICABLE_CANDIDATE!>f<!>(b)
|
a.f(<!ARGUMENT_TYPE_MISMATCH!>b<!>)
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user