summaryrefslogtreecommitdiff
path: root/test/files/pos/t5454.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-10-10 15:04:55 +1000
committerJason Zaugg <jzaugg@gmail.com>2014-10-10 15:57:02 +1000
commitbfa79972e4005f29fa997483c7f96f69ec5fdbc9 (patch)
tree381576fa79eca987013d06cd0f24452c7ddf056c /test/files/pos/t5454.scala
parent91c34cedc9ee54244f6b49dda691cbe0be182037 (diff)
downloadscala-bfa79972e4005f29fa997483c7f96f69ec5fdbc9.tar.gz
scala-bfa79972e4005f29fa997483c7f96f69ec5fdbc9.tar.bz2
scala-bfa79972e4005f29fa997483c7f96f69ec5fdbc9.zip
SI-5454 Test case for another ticket fixed by the previous commit
Diffstat (limited to 'test/files/pos/t5454.scala')
-rw-r--r--test/files/pos/t5454.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/t5454.scala b/test/files/pos/t5454.scala
new file mode 100644
index 0000000000..4045f3b57b
--- /dev/null
+++ b/test/files/pos/t5454.scala
@@ -0,0 +1,10 @@
+object IllegalInheritance {
+ trait A
+ implicit def a = new A {} // def => val
+ //val r = implicitly[A] // uncomment
+
+ class B[T](t : T)(implicit a : A) // remove implicit param block
+
+ class C extends B/*[Int]*/(23) // uncomment
+ val c = new C // comment
+}