KT-958 wrong compilation of 'in' with complex expression under test

This commit is contained in:
Alex Tkachman
2012-01-10 17:05:21 +02:00
parent e50e3f8ec8
commit ba6c9be53a
3 changed files with 10 additions and 1 deletions
@@ -0,0 +1,3 @@
fun test() = 239
fun box() = if(test() in 239..240) "OK" else "fail"