f2031ae642
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).
35 lines
732 B
Kotlin
Vendored
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) {}
|