|
| 1 | +-- Error: tests/neg/i21625.scala:5:7 ----------------------------------------------------------------------------------- |
| 2 | +5 | type F_LA_LB[K >: L] >: LB[K] // error: >: L |
| 3 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 4 | + | contravariant type L occurs in covariant position in type [K >: L] >: LB[K] of type F_LA_LB |
| 5 | +-- Error: tests/neg/i21625.scala:8:7 ----------------------------------------------------------------------------------- |
| 6 | +8 | type F_NU_LB[V <: U] >: LB[V] // error: <: U |
| 7 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 8 | + | covariant type U occurs in contravariant position in type [V <: U] >: LB[V] of type F_NU_LB |
| 9 | +-- Error: tests/neg/i21625.scala:10:7 ---------------------------------------------------------------------------------- |
| 10 | +10 | type F_LA_UB[K >: L] <: UB[K] // error: >: L |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 12 | + | contravariant type L occurs in covariant position in type [K >: L] <: UB[K] of type F_LA_UB |
| 13 | +-- Error: tests/neg/i21625.scala:13:7 ---------------------------------------------------------------------------------- |
| 14 | +13 | type F_NU_UB[V <: U] <: UB[V] // error: <: U |
| 15 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 16 | + | covariant type U occurs in contravariant position in type [V <: U] <: UB[V] of type F_NU_UB |
| 17 | +-- Error: tests/neg/i21625.scala:17:7 ---------------------------------------------------------------------------------- |
| 18 | +17 | F_NL_LB[M <: L] >: LB[M], // error: <: L |
| 19 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 20 | + | contravariant type L occurs in covariant position in type [M <: L] >: LB[M] of type F_NL_LB |
| 21 | +-- Error: tests/neg/i21625.scala:18:7 ---------------------------------------------------------------------------------- |
| 22 | +18 | F_UA_LB[T >: U] >: LB[T], // error: >: U |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 24 | + | covariant type U occurs in contravariant position in type [T >: U] >: LB[T] of type F_UA_LB |
| 25 | +-- Error: tests/neg/i21625.scala:22:7 ---------------------------------------------------------------------------------- |
| 26 | +22 | F_NL_UB[M <: L] <: UB[M], // error: <: L |
| 27 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 28 | + | contravariant type L occurs in covariant position in type [M <: L] <: UB[M] of type F_NL_UB |
| 29 | +-- Error: tests/neg/i21625.scala:23:7 ---------------------------------------------------------------------------------- |
| 30 | +23 | F_UA_UB[T >: U] <: UB[T], // error: >: U |
| 31 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 32 | + | covariant type U occurs in contravariant position in type [T >: U] <: UB[T] of type F_UA_UB |
| 33 | +-- Error: tests/neg/i21625.scala:28:7 ---------------------------------------------------------------------------------- |
| 34 | +28 | type M <: L // error: <: L |
| 35 | + | ^^^^^^^^^^^ |
| 36 | + | contravariant type L occurs in covariant position in type <: L of type M |
| 37 | +-- Error: tests/neg/i21625.scala:29:7 ---------------------------------------------------------------------------------- |
| 38 | +29 | type T >: U // error: >: U |
| 39 | + | ^^^^^^^^^^^ |
| 40 | + | covariant type U occurs in contravariant position in type >: U of type T |
| 41 | +-- Error: tests/neg/i21625.scala:32:10 --------------------------------------------------------------------------------- |
| 42 | +32 | def d_K[K >: L](): K // error: >: L |
| 43 | + | ^^^^^^ |
| 44 | + | contravariant type L occurs in covariant position in type >: L of type K |
| 45 | +-- Error: tests/neg/i21625.scala:33:6 ---------------------------------------------------------------------------------- |
| 46 | +33 | def d_L(): L // error: => L |
| 47 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 48 | + | contravariant type L occurs in covariant position in type (): L of method d_L |
| 49 | +-- Error: tests/neg/i21625.scala:37:10 --------------------------------------------------------------------------------- |
| 50 | +37 | def d_V[V <: U](): V // error: <: U |
| 51 | + | ^^^^^^ |
| 52 | + | covariant type U occurs in contravariant position in type <: U of type V |
| 53 | +-- Error: tests/neg/i21625.scala:40:6 ---------------------------------------------------------------------------------- |
| 54 | +40 | val v_L: L // error: L |
| 55 | + | ^^^^^^^^^^ |
| 56 | + | contravariant type L occurs in covariant position in type L of value v_L |
| 57 | +-- Error: tests/neg/i21625.scala:48:15 --------------------------------------------------------------------------------- |
| 58 | +48 | def d_K_Unit[K >: L](): K => Unit // error: >: L |
| 59 | + | ^^^^^^ |
| 60 | + | contravariant type L occurs in covariant position in type >: L of type K |
| 61 | +-- Error: tests/neg/i21625.scala:52:6 ---------------------------------------------------------------------------------- |
| 62 | +52 | def d_U_Unit(): U => Unit // error: U => |
| 63 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 64 | + | covariant type U occurs in contravariant position in type (): U => Unit of method d_U_Unit |
| 65 | +-- Error: tests/neg/i21625.scala:53:15 --------------------------------------------------------------------------------- |
| 66 | +53 | def d_V_Unit[V <: U](): V => Unit // error: <: U |
| 67 | + | ^^^^^^ |
| 68 | + | covariant type U occurs in contravariant position in type <: U of type V |
| 69 | +-- Error: tests/neg/i21625.scala:59:6 ---------------------------------------------------------------------------------- |
| 70 | +59 | val v_U_Unit: U => Unit // error: U => |
| 71 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 72 | + | covariant type U occurs in contravariant position in type U => Unit of value v_U_Unit |
0 commit comments