File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change
1
+ object typeApply :
2
+
3
+ def f3 [T <: Int ][U <: String ](): T => T = ???
4
+ def f5 [T <: Int ][U <: String ]: [X <: Unit ] => X => X = ???
5
+ def f7 [T <: Int ][U <: String ]()[X <: Unit ]: X => X = ???
6
+
7
+ @ main def test = {
8
+ f3[String ] // error
9
+ f5[Int ][Unit ] // error
10
+ f7[String ]()[Unit ] // error
11
+ }
Original file line number Diff line number Diff line change @@ -10,13 +10,12 @@ object typeApply:
10
10
def f7 [T <: Int ][U <: String ]()[X <: Unit ]: X => X = ???
11
11
12
12
@ main def test = {
13
- f0[Int ][String ] // only one that works when lines 1088 to 1089 of Applications.scala are uncommented
13
+ f0[Int ][String ]
14
14
f1[Int ][String ]
15
15
f2[Int ][String ]()
16
16
f3[Int ][String ]()
17
17
f4[Int ][String ]
18
18
f5[Int ][String ]
19
- f5[Int ][Unit ] // Should this work ?
20
19
f5[Int ][String ][Unit ]
21
20
f6[Int ]()[Unit ]
22
21
f7[Int ]()[Unit ]
You can’t perform that action at this time.
0 commit comments