Analysis API: move testdata to corresponding components folders

This commit is contained in:
Ilya Kirillov
2021-11-17 18:42:35 +01:00
parent f833fc4bcb
commit 6f6a33e852
533 changed files with 0 additions and 0 deletions
@@ -0,0 +1,3 @@
expression: a
isStable: null
smartCastType: null
@@ -0,0 +1,10 @@
interface A
interface B
fun <T> T.foo() where T: A, T: B {}
fun test(a: Any) {
if (a is A && a is B) {
<expr>a</expr>.foo()
}
}
@@ -0,0 +1,3 @@
expression: a
isStable: true
smartCastType: (A&B)
@@ -0,0 +1,3 @@
expression: a
isStable: false
smartCastType: (A & B)
@@ -0,0 +1,11 @@
interface A
interface B
fun <T> T.foo() where T: A, T: B {}
var a: Any = 1
fun test() {
if (a is A && a is B) {
<expr>a</expr>.foo()
}
}
@@ -0,0 +1,3 @@
expression: a
isStable: false
smartCastType: (A&B)
@@ -0,0 +1,3 @@
expression: a
isStable: null
smartCastType: null
@@ -0,0 +1,8 @@
interface A
interface B
fun test(a: Any) {
if (a is A && a is B) {
<expr>a</expr>
}
}
@@ -0,0 +1,3 @@
expression: a
isStable: true
smartCastType: (A&B)
@@ -0,0 +1,3 @@
expression: a
isStable: null
smartCastType: null
@@ -0,0 +1,9 @@
interface A
interface B
var a: Any = 1
fun test() {
if (a is A && a is B) {
<expr>a</expr>
}
}
@@ -0,0 +1,3 @@
expression: a
isStable: false
smartCastType: (A&B)
@@ -0,0 +1,5 @@
fun test(a: Any) {
if (a is String) {
<expr>a</expr>.length
}
}
@@ -0,0 +1,3 @@
expression: a
isStable: true
smartCastType: kotlin.String
@@ -0,0 +1,6 @@
var a: Any = 1
fun test() {
if (a is String) {
<expr>a</expr>.length
}
}
@@ -0,0 +1,3 @@
expression: a
isStable: false
smartCastType: kotlin.String
@@ -0,0 +1,3 @@
expression: a
isStable: null
smartCastType: null
@@ -0,0 +1,5 @@
fun test(a: Any) {
if (a is String) {
<expr>a</expr>
}
}
@@ -0,0 +1,3 @@
expression: a
isStable: true
smartCastType: kotlin.String
@@ -0,0 +1,3 @@
expression: a
isStable: null
smartCastType: null
@@ -0,0 +1,6 @@
var a: Any = 1
fun test() {
if (a is String) {
<expr>a</expr>
}
}
@@ -0,0 +1,3 @@
expression: a
isStable: false
smartCastType: kotlin.String