aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/t1292.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/neg/t1292.scala')
-rw-r--r--tests/neg/t1292.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/neg/t1292.scala b/tests/neg/t1292.scala
index 69e680320..de74dc159 100644
--- a/tests/neg/t1292.scala
+++ b/tests/neg/t1292.scala
@@ -1,5 +1,5 @@
trait Foo[T <: Foo[T, Enum], Enum <: Enumeration] {
- type StV = Enum#Value
+ type StV = Enum#Value // error: Enum is not a legal path
type Meta = MegaFoo[T, Enum]
type Slog <: Enumeration
@@ -9,7 +9,7 @@ trait Foo[T <: Foo[T, Enum], Enum <: Enumeration] {
trait MegaFoo[T <: Foo[T, Enum], Enum <: Enumeration] extends Foo[T, Enum] {
def doSomething(what: T, misc: StV, dog: Meta#Event) = None
- // error: Meta is not a valid prefix for '#'.
+ // old-error: Meta is not a valid prefix for '#'.
// The error is correct. Meta is not stable, and it has an abstract type member Slog
abstract class Event
object Event