Files
kotlin-fork/compiler/testData/ir/irText/firProblems/timesInBuilder.kt
T
Sergej Jaskiewicz f2031ae642 [IR] Don't print multifile/synthetic facade class names in irText tests
This only applies to JVM and fq-names in declaration references
in IR dumps.

This enables us to run more irText tests on platforms other than JVM
(see KT-58605).
2023-06-05 10:40:17 +00:00

35 lines
732 B
Kotlin
Vendored

// WITH_STDLIB
// MUTE_SIGNATURE_COMPARISON_K2: ANY
// ^ KT-57778
private fun test(x: Long) =
countIssues {
+(spentTime lessEq 2 * 60)
+(spentTime lessEq id(2 * 60))
+(spentTime.select(2 * 60, x))
}
val spentTime = integer("spentTime")
fun integer(name: String) = Column()
fun <I> id(arg: I): I = arg
infix fun <T : Comparable<T>> Column.lessEq(t: T) = Expression()
fun <T : Comparable<T>> Column.select(t: T, r: T) = Expression()
class Expression
class Column
class ArgumentsBuilder {
val arguments = mutableListOf<Expression>()
operator fun Expression.unaryPlus() {
arguments.add(this)
}
}
private fun countIssues(restrictionsBuilder: ArgumentsBuilder.() -> Unit) {}