From a544d6948b930012ca0525633a2703808bc32b13 Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Thu, 22 Jul 2021 07:51:50 +0200 Subject: [PATCH] Fix `simpleUnaryOperators.kt` test --- .../testData/ir/irText/expressions/simpleUnaryOperators.kt.txt | 2 +- .../testData/ir/irText/expressions/simpleUnaryOperators.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/testData/ir/irText/expressions/simpleUnaryOperators.kt.txt b/compiler/testData/ir/irText/expressions/simpleUnaryOperators.kt.txt index c2b7bca047d..cc3c0593ddb 100644 --- a/compiler/testData/ir/irText/expressions/simpleUnaryOperators.kt.txt +++ b/compiler/testData/ir/irText/expressions/simpleUnaryOperators.kt.txt @@ -19,6 +19,6 @@ fun test5(x: Boolean): Boolean { } fun test6(): Boolean { - return false + return true.not() } diff --git a/compiler/testData/ir/irText/expressions/simpleUnaryOperators.txt b/compiler/testData/ir/irText/expressions/simpleUnaryOperators.txt index 5c6a441119a..c3113a636de 100644 --- a/compiler/testData/ir/irText/expressions/simpleUnaryOperators.txt +++ b/compiler/testData/ir/irText/expressions/simpleUnaryOperators.txt @@ -28,4 +28,5 @@ FILE fqName: 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 ' - CONST Boolean type=kotlin.Boolean value=false + 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