diff options
Diffstat (limited to 'test/neg/vincent1.check')
-rw-r--r-- | test/neg/vincent1.check | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/neg/vincent1.check b/test/neg/vincent1.check new file mode 100644 index 0000000000..a9f60e9ad2 --- /dev/null +++ b/test/neg/vincent1.check @@ -0,0 +1,7 @@ +vincent1.scala:7: type x.type escapes its defining scope as part of scala.Object { type T = x.T } + class Functor(x: A) { type T = x.T } + ^ +vincent1.scala:9: type x.type escapes its defining scope as part of test.B { type T = x.T } + def functor(x: A): B { type T = x.T } = + ^ +two errors found |