fix #54 on current version of the compiler it is no more an issue
This commit is contained in:
		
							parent
							
								
									cad6ba936d
								
							
						
					
					
						commit
						0526cdfb38
					
				@ -3035,5 +3035,19 @@ class ScriptTest {
 | 
				
			|||||||
            """.trimIndent())
 | 
					            """.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())
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user