show type of control statements used as expressions
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user