Diagnostics improvements for corner cases

(class/package qualifier in non-qualifier position).
This commit is contained in:
Dmitry Petrov
2015-11-17 15:51:57 +03:00
parent ba8372cc11
commit 7b432c878a
18 changed files with 52 additions and 48 deletions
@@ -11,7 +11,7 @@ sealed class Tree {
fun maxIsClass(): Int = <!NO_ELSE_IN_WHEN!>when<!>(this) {
Empty -> -1
<!NO_VALUE_FOR_PARAMETER, FUNCTION_CALL_EXPECTED!>Leaf<!> -> 0
<!NO_COMPANION_OBJECT!>Leaf<!> -> 0
is Node -> <!DEBUG_INFO_SMARTCAST!>this<!>.left.max()
}