[IR] add new testdata after rebase

This commit is contained in:
Zalim Bashorov
2020-11-17 02:40:32 +03:00
committed by teamcityserver
parent f9fe82e735
commit ad0f154ed1
2 changed files with 64 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
class A {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
private val b: <no name provided>
field = { // BLOCK
local class <no name provided> : DoubleExpression {
constructor() /* primary */ {
super/*DoubleExpression*/()
/* <init>() */
}
override fun get(): Double {
return 0.0D
}
}
<no name provided>()
}
private get
}
class C : DoubleExpression {
constructor() /* primary */ {
super/*DoubleExpression*/()
/* <init>() */
}
override fun get(): Double {
return 0.0D
}
}
@@ -0,0 +1,23 @@
interface Something {
}
interface Recursive<R> where R : Recursive<R>, R : Something {
abstract val symbol: AbstractSymbol<R>
abstract get
}
abstract class AbstractSymbol<E> where E : Recursive<E>, E : Something {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
fun foo(list: List<Any>) {
val result: List<AbstractSymbol<out Recursive<*>>> = list.filterIsInstance<Recursive<*>>().map<Recursive<*>, AbstractSymbol<out Recursive<*>>>(transform = Recursive::symbol)
}
}