diff options
Diffstat (limited to 'tests/untried/neg/t2462b.scala')
-rw-r--r-- | tests/untried/neg/t2462b.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/neg/t2462b.scala b/tests/untried/neg/t2462b.scala new file mode 100644 index 000000000..576db4bd3 --- /dev/null +++ b/tests/untried/neg/t2462b.scala @@ -0,0 +1,9 @@ +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] |