File: t8675b.scala

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 (22 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
object Test {
  trait Engine1

  implicit class EngineTools1[Params, R](e: Engine1) {
    def asRequirement: Requirement1[Params, R] = ???
  }
  trait Requirement1[Params, R] {
    def pathsIncludingSelf: Traversable[List[Reportable1[Params, R]]]
  }
  trait Reportable1[Params, R]

  // "missing parameter type" error was swallowed in 2.11.0 leading to a crash
  // in the backend.
  //
  // This error is itself a regression (or at least a change) in 2.11.0-M7,
  // specifically in SI-7944. The type parameters to the implicit view
  // `EngineTools1` are undetermined, and are now treated as type variables
  // in the expected type of the closure argument to `withFilter`.
  for (path: List[Any] <- (null : Engine1).asRequirement.pathsIncludingSelf.toList) {
    ???
  }
}