blob: 7a1389cc8e3e4c338e7b6b3bfd4252c0166b2175 (
plain) (
tree)
|
|
package test
import scala.annotation.implicitNotFound
@implicitNotFound(msg = "Cannot construct a collection of type ${Too} with elements of type ${Elem} based on a collection of type ${From}.")
trait Meh[-From, +To]
@implicitNotFound(msg = "Cannot construct a collection of type ${To} ${Elem}.")
trait Meh2[-From, +To]
class thankyoupartest { def x = 42 }
class testmustfail extends thankyoupartest { def x = 43 }
|