File: divergent-implicit.check

package info (click to toggle)
scala 2.7.7.dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 75,804 kB
  • ctags: 1,852
  • sloc: java: 7,762; xml: 6,608; sh: 1,723; cs: 158; makefile: 9; ansic: 6
file content (17 lines) | stat: -rw-r--r-- 746 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
divergent-implicit.scala:4: error: diverging implicit expansion for type (Int) => B
starting with method cast in object Test1
  val x1: String = 1
                   ^
divergent-implicit.scala:5: error: diverging implicit expansion for type (Int) => String
starting with method cast in object Test1
  val x2: String = cast[Int, String](1)
                   ^
divergent-implicit.scala:14: error: diverging implicit expansion for type (Test2.Baz) => Test2.Bar
starting with method baz2bar in object Test2
  val x: Bar = new Foo
               ^
divergent-implicit.scala:15: error: diverging implicit expansion for type (Test2.Foo) => Test2.Bar
starting with method foo2bar in object Test2
  val y: Bar = new Baz
               ^
four errors found