http://xeno-by.livejournal.com/ ([identity profile] xeno-by.livejournal.com) wrote in [personal profile] juan_gandhi 2013-01-24 12:34 pm (UTC)

Вот, что пишет -Xlog-implicits:
13:33 ~/Projects/Kepler_snippet00/sandbox (topic/snippet00)$ scalac -Xlog-implicits Test.scala 
Test.scala:3: safeCast is not a valid implicit value for L.this.x.type => ?{def *: ?} because:
inferred type arguments [X,L.this.x.type,X] do not conform to method safeCast's type parameter bounds [X,Y,_ >: X <: Y]
  case class L[X](val x: X) { def double[_ >: X <: Int] = x*2 }

Сейчас подумаю, почему так.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting