Files
kotlin-fork/compiler/testData/psi/DoubleColon.kt
T
Alexander Udalov a9b2fd964b Support nullable types on left-hand side of ::
#KT-1183 In Progress
2014-06-26 20:57:39 +04:00

48 lines
455 B
Kotlin

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()
a?::b
a??::b
a<b>?::c
a<b?,c?>?::d
}
fun err0() {
a::b.c::d
}
fun err1() {
A::
}
fun err2() {
A::a::b
}
fun err3() {
::
}