Files
kotlin-fork/compiler/testData/ir/irText/firProblems/timesInBuilder.fir.kt.txt
T
2024-02-16 10:19:38 +00:00

68 lines
1.4 KiB
Kotlin
Vendored

val spentTime: Column
field = integer(name = "spentTime")
get
class ArgumentsBuilder {
val arguments: MutableList<Expression>
field = mutableListOf<Expression>()
get
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
operator fun Expression.unaryPlus() {
<this>.<get-arguments>().add(element = <this>) /*~> Unit */
}
}
class Column {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}
class Expression {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}
private fun countIssues(restrictionsBuilder: @ExtensionFunctionType Function1<ArgumentsBuilder, Unit>) {
}
fun <I : Any?> id(arg: I): I {
return arg
}
fun integer(name: String): Column {
return Column()
}
infix fun <T : Comparable<T>> Column.lessEq(t: T): Expression {
return Expression()
}
fun <T : Comparable<T>> Column.select(t: T, r: T): Expression {
return Expression()
}
private fun test(x: Long) {
return countIssues(restrictionsBuilder = local fun ArgumentsBuilder.<anonymous>() {
($this$countIssues, <get-spentTime>().lessEq<Int>(t = 2.times(other = 60))).unaryPlus()
($this$countIssues, <get-spentTime>().lessEq<Int>(t = id<Int>(arg = 2.times(other = 60)))).unaryPlus()
($this$countIssues, <get-spentTime>().select<Long>(t = 2.times(other = 60).toLong(), r = x)).unaryPlus()
}
)
}