From 0526cdfb38e75b28967b883b683435d5974624af Mon Sep 17 00:00:00 2001 From: sergeych Date: Wed, 20 Aug 2025 11:00:47 +0300 Subject: [PATCH] fix #54 on current version of the compiler it is no more an issue --- lynglib/src/commonTest/kotlin/ScriptTest.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lynglib/src/commonTest/kotlin/ScriptTest.kt b/lynglib/src/commonTest/kotlin/ScriptTest.kt index 93955c4..bfa8047 100644 --- a/lynglib/src/commonTest/kotlin/ScriptTest.kt +++ b/lynglib/src/commonTest/kotlin/ScriptTest.kt @@ -3035,5 +3035,19 @@ class ScriptTest { """.trimIndent()) } + @Test + fun testNotExpressionWithoutWs() = runTest { + eval(""" + fun test() { false } + class T(value) + assert( !false ) + assert( !test() ) + assert( !test() ) + val t = T(false) + assert( !t.value ) + assert( !if( true ) false else true ) + """.trimIndent()) + } + } \ No newline at end of file