summaryrefslogtreecommitdiff
path: root/test/files/run/macro-expand-tparams-bounds/Impls_1.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/macro-expand-tparams-bounds/Impls_1.scala')
-rw-r--r--test/files/run/macro-expand-tparams-bounds/Impls_1.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/macro-expand-tparams-bounds/Impls_1.scala b/test/files/run/macro-expand-tparams-bounds/Impls_1.scala
new file mode 100644
index 0000000000..f9103aaf8f
--- /dev/null
+++ b/test/files/run/macro-expand-tparams-bounds/Impls_1.scala
@@ -0,0 +1,12 @@
+import scala.reflect.macros.Context
+
+object Impls1 {
+ def foo[U <: String](c: Context): c.Expr[Unit] = c.literalUnit
+}
+
+class C
+class D extends C
+
+object Impls2 {
+ def foo[U <: C](c: Context): c.Expr[Unit] = c.literalUnit
+}