Parse simple callable reference expressions

#KT-1183 In Progress
This commit is contained in:
Alexander Udalov
2013-03-18 15:33:48 +04:00
parent a6e242d166
commit dac0d77e90
5 changed files with 578 additions and 13 deletions
+42
View File
@@ -0,0 +1,42 @@
fun ok() {
A::a
A::a + 1
Map<String, Int>::size
::a
a.b::c
a::b.c
a.b::c.d
a<b>::c
a<b>::c.d
a.b<c>::d
a.b<c>::d.e
a.b<c.d>::e
a.b<c.d>::e.d
a.b<c.d<e.f>>::g.h
a.b.c<d>.e<f>.g::h
a::b()
(a::b)()
a.(b::c)()
a.b::c()
}
fun err0() {
a::b.c::d
}
fun err1() {
A::
}
fun err2() {
A::a::b
}
fun err3() {
::
}