Implicit receiver smart casts implementation and highlighting

This commit is contained in:
Mikhail Glukhikh
2015-11-09 15:18:37 +03:00
parent 03287d5d66
commit 811ba8110f
17 changed files with 175 additions and 8 deletions
@@ -1,8 +1,8 @@
// FILE: KotlinFile.kt
fun Any.foo(): Int {
if (this is JavaClass) {
something++
return x
<!DEBUG_INFO_IMPLICIT_RECEIVER_SMARTCAST!>something<!>++
return <!DEBUG_INFO_IMPLICIT_RECEIVER_SMARTCAST!>x<!>
}
return 0
}