summaryrefslogtreecommitdiff
path: root/test/files/neg/t5691.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-09-03 08:22:51 +1000
committerJason Zaugg <jzaugg@gmail.com>2014-09-03 08:22:51 +1000
commit21644611b3c676210d312eca1e0169d21070b50e (patch)
treee732aa1f0b6b6d65c21e91b40298f722200593f7 /test/files/neg/t5691.check
parent61dbf4ac711094db38a4b2dfb853d88499c2b1a5 (diff)
parent91c4192c39d2bdebf37a97e41d374a39ece8af85 (diff)
downloadscala-21644611b3c676210d312eca1e0169d21070b50e.tar.gz
scala-21644611b3c676210d312eca1e0169d21070b50e.tar.bz2
scala-21644611b3c676210d312eca1e0169d21070b50e.zip
Merge pull request #3959 from lrytz/merge/2.11-to-2.12-is-it-really-sept-2-already-where-was-summer
Merge 2.11 to 2.12
Diffstat (limited to 'test/files/neg/t5691.check')
-rw-r--r--test/files/neg/t5691.check24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/files/neg/t5691.check b/test/files/neg/t5691.check
new file mode 100644
index 0000000000..a51ca98a10
--- /dev/null
+++ b/test/files/neg/t5691.check
@@ -0,0 +1,24 @@
+t5691.scala:7: warning: type parameter D defined in method foobar shadows trait D defined in class B. You may want to rename your type parameter, or possibly remove it.
+ def foobar[D](in: D) = in.toString
+ ^
+t5691.scala:10: warning: type parameter D defined in type MySeq shadows trait D defined in class B. You may want to rename your type parameter, or possibly remove it.
+ type MySeq[D] = Seq[D]
+ ^
+t5691.scala:15: warning: type parameter T defined in method bar shadows type T defined in class Foo. You may want to rename your type parameter, or possibly remove it.
+ def bar[T](w: T) = w.toString
+ ^
+t5691.scala:13: warning: type parameter T defined in class Foo shadows type T defined in class B. You may want to rename your type parameter, or possibly remove it.
+ class Foo[T](t: T) {
+ ^
+t5691.scala:19: warning: type parameter List defined in type M shadows type List defined in package object scala. You may want to rename your type parameter, or possibly remove it.
+ class C[M[List[_]]]
+ ^
+t5691.scala:20: warning: type parameter List defined in type M shadows type List defined in package object scala. You may want to rename your type parameter, or possibly remove it.
+ type E[M[List[_]]] = Int
+ ^
+t5691.scala:21: warning: type parameter List defined in type M shadows type List defined in package object scala. You may want to rename your type parameter, or possibly remove it.
+ def foo[N[M[List[_]]]] = ???
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+7 warnings found
+one error found