summaryrefslogtreecommitdiff
path: root/test/files/neg/t2462b.scala
blob: 7a1389cc8e3e4c338e7b6b3bfd4252c0166b2175 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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 }