Skip to content

Commit

Permalink
[IR] add new testdata after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
bashor authored and teamcityserver committed Nov 25, 2020
1 parent f9fe82e commit ad0f154
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
41 changes: 41 additions & 0 deletions compiler/testData/ir/irText/classes/kt43217.kt.txt
Original file line number Diff line number Diff line change
@@ -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
}

}

Original file line number Diff line number Diff line change
@@ -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)
}

}

0 comments on commit ad0f154

Please sign in to comment.