CompileTimeConstantUtils: use getConstant instead of evaluate

Hacky way to avoid passing builtins into this code
This commit is contained in:
Pavel V. Talanov
2015-07-20 19:57:43 +03:00
parent 855e3d2bf4
commit 4e0d2bc23c
3 changed files with 16 additions and 3 deletions
@@ -0,0 +1,4 @@
fun box() : String = when (true) {
((true)) -> "OK"
(1 == 2) -> "Not ok"
}