Parser: allow function types as receiver type for function
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
fun ((T) -> G).foo<P> { }
|
||||
fun ((T) -> G).foo { }
|
||||
fun ((T) -> G).foo<P>
|
||||
fun ((T) -> G).foo = 0
|
||||
fun ((T) -> G)?.foo { }
|
||||
fun ((T) -> G)??.foo { }
|
||||
|
||||
fun ([a] T<T>.(A<B>, C<D, E>) -> ).foo() {}
|
||||
fun fun [a] T<T>.(A<B>).foo()
|
||||
|
||||
fun [a] (T<T>.(A<B>)).foo()
|
||||
fun [a] ((A<B>)-).foo()
|
||||
|
||||
fun ((T)->G).foo<T>
|
||||
class C<T>.
|
||||
|
||||
fun foo<c> {}
|
||||
c<t>.
|
||||
|
||||
//-----------
|
||||
class A<X> {
|
||||
fun foo<Y>() {
|
||||
}
|
||||
}
|
||||
|
||||
fun bar(a: A<String>) {
|
||||
a.foo<Int>()
|
||||
}
|
||||
Reference in New Issue
Block a user