[Test] Migrate AbstractExtendedFirDiagnosticsTest to new infrastructure
This commit is contained in:
committed by
TeamCityServer
parent
a276d05917
commit
298e27bdac
+5
@@ -0,0 +1,5 @@
|
||||
FILE: Basic.kt
|
||||
public final val list1: R|kotlin/collections/List<kotlin/Int>| = R|kotlin/collections/listOf|<R|kotlin/Int|>(Int(1))
|
||||
public get(): R|kotlin/collections/List<kotlin/Int>|
|
||||
public final val list: R|kotlin/collections/List<kotlin/Int>| = R|/list1|.R|kotlin/collections/orEmpty|<R|kotlin/Int|>()
|
||||
public get(): R|kotlin/collections/List<kotlin/Int>|
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val list1: List<Int> = listOf(1)
|
||||
val list = list1.<!USELESS_CALL_ON_NOT_NULL!>orEmpty()<!>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
FILE: NotNullType.kt
|
||||
public final val list1: R|kotlin/collections/List<kotlin/Int>| = R|kotlin/collections/listOf|<R|kotlin/Int|>(Int(1))
|
||||
public get(): R|kotlin/collections/List<kotlin/Int>|
|
||||
public final val list: R|kotlin/collections/List<kotlin/Int>| = R|/list1|.R|kotlin/collections/orEmpty|<R|kotlin/Int|>()
|
||||
public get(): R|kotlin/collections/List<kotlin/Int>|
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val list1: List<Int> = listOf(1)
|
||||
val list = list1.<!USELESS_CALL_ON_NOT_NULL!>orEmpty()<!>
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
FILE: NotNullTypeChain.kt
|
||||
public final val list1: R|kotlin/collections/List<kotlin/Int>| = R|kotlin/collections/listOf|<R|kotlin/Int|>(Int(1))
|
||||
public get(): R|kotlin/collections/List<kotlin/Int>|
|
||||
public final val list: R|kotlin/collections/List<kotlin/String>| = R|/list1|.R|kotlin/collections/orEmpty|<R|kotlin/Int|>().R|kotlin/collections/map|<R|kotlin/Int|, R|kotlin/String|>(<L> = map@fun <anonymous>(it: R|kotlin/Int|): R|kotlin/String| <kind=UNKNOWN> {
|
||||
^ <strcat>(R|<local>/it|.R|kotlin/Any.toString|())
|
||||
}
|
||||
)
|
||||
public get(): R|kotlin/collections/List<kotlin/String>|
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val list1: List<Int> = listOf(1)
|
||||
val list = list1.<!USELESS_CALL_ON_NOT_NULL!>orEmpty()<!>.map { "$it" }
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
FILE: NullOrBlankSafe.kt
|
||||
public final val s: R|kotlin/String?| = String()
|
||||
public get(): R|kotlin/String?|
|
||||
public final val blank: R|kotlin/Boolean| = R|/s|.R|kotlin/text/isNullOrBlank|()
|
||||
public get(): R|kotlin/Boolean|
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val s: String? = ""
|
||||
val blank = s.isNullOrBlank()
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
FILE: NullOrEmpty.kt
|
||||
public final val s: R|kotlin/String| = String()
|
||||
public get(): R|kotlin/String|
|
||||
public final val empty: R|kotlin/Boolean| = R|/s|.R|kotlin/text/isNullOrEmpty|()
|
||||
public get(): R|kotlin/Boolean|
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val s = ""
|
||||
val empty = s.<!USELESS_CALL_ON_NOT_NULL!>isNullOrEmpty()<!>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
FILE: NullOrEmptyFake.kt
|
||||
public final val s: R|kotlin/String?| = Null(null)
|
||||
public get(): R|kotlin/String?|
|
||||
public final val empty: R|kotlin/Boolean| = R|/s|.R|kotlin/text/isNullOrEmpty|()
|
||||
public get(): R|kotlin/Boolean|
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val s: String? = null
|
||||
val empty = s.isNullOrEmpty()
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
FILE: NullOrEmptySafe.kt
|
||||
public final val s: R|kotlin/String?| = String()
|
||||
public get(): R|kotlin/String?|
|
||||
public final val empty: R|kotlin/Boolean?| = R|/s|?.{ $subj$.R|kotlin/text/isNullOrEmpty|() }
|
||||
public get(): R|kotlin/Boolean?|
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val s: String? = ""
|
||||
val empty = s?.<!USELESS_CALL_ON_NOT_NULL!>isNullOrEmpty()<!>
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
FILE: OrEmptyFake.kt
|
||||
public final val list: R|kotlin/collections/List<kotlin/String>?| = Null(null)
|
||||
public get(): R|kotlin/collections/List<kotlin/String>?|
|
||||
public final val empty: R|kotlin/collections/List<kotlin/String>| = R|/list|.R|kotlin/collections/orEmpty|<R|kotlin/String|>()
|
||||
public get(): R|kotlin/collections/List<kotlin/String>|
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val list: List<String>? = null
|
||||
val empty = list.orEmpty()
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
FILE: SafeCall.kt
|
||||
public final val list1: R|kotlin/collections/List<kotlin/Int>?| = R|kotlin/collections/listOf|<R|kotlin/Int|>(Int(1))
|
||||
public get(): R|kotlin/collections/List<kotlin/Int>?|
|
||||
public final val list: R|kotlin/collections/List<kotlin/Int>?| = R|/list1|?.{ $subj$.R|kotlin/collections/orEmpty|<R|kotlin/Int|>() }
|
||||
public get(): R|kotlin/collections/List<kotlin/Int>?|
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val list1: List<Int>? = listOf(1)
|
||||
val list = list1?.<!USELESS_CALL_ON_NOT_NULL!>orEmpty()<!>
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
FILE: Sequence.kt
|
||||
public final fun test(s: R|kotlin/sequences/Sequence<kotlin/Int>|): R|kotlin/Unit| {
|
||||
lval foo: R|kotlin/sequences/Sequence<kotlin/Int>| = R|<local>/s|.R|kotlin/sequences/orEmpty|<R|kotlin/Int|>()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun test(s: Sequence<Int>) {
|
||||
<!UNUSED_VARIABLE{LT}!>val <!UNUSED_VARIABLE{PSI}!>foo<!> = s.<!USELESS_CALL_ON_NOT_NULL!>orEmpty()<!><!>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
FILE: String.kt
|
||||
public final val s: R|kotlin/String| = String()
|
||||
public get(): R|kotlin/String|
|
||||
public final val s1: R|kotlin/String| = R|/s|.R|kotlin/text/orEmpty|()
|
||||
public get(): R|kotlin/String|
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val s = ""
|
||||
val s1 = s.<!USELESS_CALL_ON_NOT_NULL!>orEmpty()<!>
|
||||
Reference in New Issue
Block a user