fix #54 on current version of the compiler it is no more an issue
This commit is contained in:
1 parent
cad6ba936d
commit
0526cdfb38
1 file changed
+14
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user