object Main extends App { val x = if (false) 5 else "yoba" println { x } println { if (false) 5 else '5' } println { val x = if (false) 5 else '5' ; x }}
1 2 10 42 11
yoba 5 53
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!