forked from scala/scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qmark-deprecated.check
25 lines (25 loc) · 971 Bytes
/
qmark-deprecated.check
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
qmark-deprecated.scala:4: error: using `?` as a type name requires backticks.
class Foo[?] // error
^
qmark-deprecated.scala:6: error: using `?` as a type name requires backticks.
class Bar[M[?] <: List[?]] // error on the definition
^
qmark-deprecated.scala:10: error: using `?` as a type name requires backticks.
class ? { val x = 1 } // error
^
qmark-deprecated.scala:16: error: using `?` as a type name requires backticks.
trait ? // error
^
qmark-deprecated.scala:22: error: using `?` as a type name requires backticks.
type ? = Int // error
^
qmark-deprecated.scala:33: error: using `?` as a type name requires backticks.
def bar1[?] = {} // error
^
qmark-deprecated.scala:35: error: using `?` as a type name requires backticks.
def bar3[M[?]] = {} // error
^
qmark-deprecated.scala:38: error: using `?` as a type name requires backticks.
type A[?] = Int // error
^
8 errors