Files
kotlin/compiler/testData/repl/controlFlow/incompleteIf.repl
Alexander Udalov 26e3d2cf5d Use TopLevelDeclarations analysis mode in REPL
#KT-12564 Fixed
2017-06-06 14:00:45 +03:00

7 lines
164 B
Plaintext
Vendored

>>> if (false) 42
>>> if (true) 42
>>> "" + (if (true) 42)
error: 'if' must have both main and 'else' branches if used as an expression
"" + (if (true) 42)
^