Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/parameters/expressions/noteq.kt
T

16 lines
403 B
Kotlin
Vendored

// !LANGUAGE: -ProhibitSimplificationOfNonTrivialConstBooleanExpressions
// FIR_IDENTICAL
package test
annotation class Ann(
val b1: Boolean,
val b2: Boolean,
val b3: Boolean,
val b4: Boolean,
val b5: Boolean
)
@Ann(1 != 2, 1.0 != 2.0, 'b' != 'a', "a" != "b", "a" != "a") class MyClass
// EXPECTED: @Ann(b1 = true, b2 = true, b3 = true, b4 = true, b5 = false)