Fix NPE in checkLValue when selector is absent. Add test for incomplete syntax.

This commit is contained in:
Ilya Ryzhenkov
2015-08-12 13:34:19 +03:00
parent 8104a78746
commit a717afd9db
3 changed files with 11 additions and 2 deletions
@@ -91,6 +91,11 @@ class Test() {
s += (a@ 2)
}
fun testIncompleteSyntax() {
val s = "s"
<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>++<!>s.<!SYNTAX!><!>
}
fun testVariables() {
var a: Int = 34
val b: Int = 34