Parse expressions on LHS of '::'

See https://github.com/Kotlin/KEEP/issues/5
This commit is contained in:
Alexander Udalov
2016-04-15 20:01:20 +03:00
parent 7cb61b81ab
commit b5388d6a43
13 changed files with 712 additions and 394 deletions
+25
View File
@@ -37,4 +37,29 @@ fun classLiteral() {
a<b,c>::class
::class
a b ::class
this::class
super::class
X()::class
object {}::class
}
fun expressions() {
this@x::foo
super<a>@b::foo
-a::b
++a::b
a+b::c
(a+b)::c
x()::e
x().y().z()::e
a::b.c::d
A::a::b
}
fun emptyLHS() {
::x.name
foo(::x.name)
}