File: t7872b.check

package info (click to toggle)
scala 2.11.12-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 62,924 kB
  • sloc: javascript: 28,808; java: 13,415; xml: 3,135; sh: 1,620; python: 756; makefile: 38; awk: 36; ansic: 6
file content (7 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
t7872b.scala:8: error: contravariant type a occurs in covariant position in type [-a]List[a] of type l
  def oops1 = down[({type l[-a] = List[a]})#l](List('whatever: Object)).head + "oops"
                          ^
t7872b.scala:19: error: covariant type a occurs in contravariant position in type [+a]coinv.Stringer[a] of type l
  def oops2 = up[({type l[+a] = Stringer[a]})#l]("printed: " + _)
                        ^
two errors found