GreatSyntacticShift: Codegen testdata fixed

This commit is contained in:
Andrey Breslav
2011-12-21 11:45:50 +02:00
parent 2d1c529dd1
commit f67c6549eb
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
package jet121 {
fun box() : String {
val answer = apply("OK") { String.() : Int ->
val answer = apply("OK") { String.#() : Int ->
get(0)
length
}
+3 -3
View File
@@ -1,8 +1,8 @@
fun foo1() : (Int) -> Int = { (x: Int) -> x }
fun foo1() : #(Int) -> Int = { (x: Int) -> x }
fun foo() {
val h : (Int) -> Int = foo1();
val h : #(Int) -> Int = foo1();
h(1)
val m : (Int) -> Int = {(a : Int) -> 1}//foo1()
val m : #(Int) -> Int = {(a : Int) -> 1}//foo1()
m(1)
}