[IR] add new testdata after rebase
This commit is contained in:
committed by
teamcityserver
parent
f9fe82e735
commit
ad0f154ed1
@@ -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
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
+23
@@ -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)
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user