fix #54 on current version of the compiler it is no more an issue

This commit is contained in:
Sergey Chernov 2025-08-20 11:00:47 +03:00
parent cad6ba936d
commit 0526cdfb38

View File

@ -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())
}
}