show type of control statements used as expressions

This commit is contained in:
Dmitry Jemerov
2016-10-04 18:13:26 +02:00
parent 02a5856ffd
commit dbbba45d63
3 changed files with 28 additions and 4 deletions
@@ -0,0 +1,8 @@
val x = if (flag) {
if (flag2) 1<caret>3 else 7
} else 42
// TYPE: 13 -> <html>Int</html>
// TYPE: if (flag2) 13 else 7 -> <html>Int</html>
// TYPE: if (flag) { if (flag2) 13 else 7 } else 42 -> <html>Int</html>
// TYPE: val x = if (flag) { if (flag2) 13 else 7 } else 42 -> <html>Int</html>