JET-140 Change function type syntax

and tests for
JET-168 Improve the parser for function and tuple types as receiver types
This commit is contained in:
Andrey Breslav
2011-07-06 17:49:35 +04:00
parent 4cf00a8548
commit e0d597a1bc
56 changed files with 279 additions and 1874 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ error:
<ERROR>
=====================
== flfun ==
fun flfun(f : {() : Any}) : Unit {}
fun flfun(f : fun () : Any) : Unit {}
---------------------
l0:
<START>
+1 -1
View File
@@ -20,4 +20,4 @@ fun foo(a : Boolean, b : Int) : Unit {}
fun genfun<T>() : Unit {}
fun flfun(f : {() : Any}) : Unit {}
fun flfun(f : fun () : Any) : Unit {}