[FE 1.0] Postpone ProhibitSimplificationOfNonTrivialConstBooleanExpressions till 1.7

^KT-39883
This commit is contained in:
Dmitriy Novozhilov
2021-09-01 10:11:17 +03:00
committed by teamcityserver
parent 97d71dc160
commit 5a5d25d350
4 changed files with 4 additions and 5 deletions
@@ -19,6 +19,6 @@ fun test5(x: Boolean): Boolean {
}
fun test6(): Boolean {
return true.not()
return false
}
@@ -28,5 +28,4 @@ FILE fqName:<root> fileName:/simpleUnaryOperators.kt
FUN name:test6 visibility:public modality:FINAL <> () returnType:kotlin.Boolean
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun test6 (): kotlin.Boolean declared in <root>'
CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL
$this: CONST Boolean type=kotlin.Boolean value=true
CONST Boolean type=kotlin.Boolean value=false