aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/t5923d
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/t5923d')
-rw-r--r--tests/disabled/macro/run/t5923d/Macros_1.scala9
-rw-r--r--tests/disabled/macro/run/t5923d/Test_2.scala7
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/t5923d/Macros_1.scala b/tests/disabled/macro/run/t5923d/Macros_1.scala
new file mode 100644
index 000000000..1400674d4
--- /dev/null
+++ b/tests/disabled/macro/run/t5923d/Macros_1.scala
@@ -0,0 +1,9 @@
+import scala.language.experimental.macros
+import scala.reflect.macros.blackbox.Context
+
+trait MappedRow
+trait RowMapper[T <: MappedRow]
+object RowMapper {
+ implicit def mapper[T <: MappedRow]: RowMapper[T] = macro impl[T]
+ def impl[T <: MappedRow : c.WeakTypeTag](c: Context) = c.universe.reify(new RowMapper[T]{})
+} \ No newline at end of file
diff --git a/tests/disabled/macro/run/t5923d/Test_2.scala b/tests/disabled/macro/run/t5923d/Test_2.scala
new file mode 100644
index 000000000..e9c446209
--- /dev/null
+++ b/tests/disabled/macro/run/t5923d/Test_2.scala
@@ -0,0 +1,7 @@
+class RowA extends MappedRow
+class RowB extends MappedRow
+
+object Test extends dotty.runtime.LegacyApp {
+ implicitly[RowMapper[RowA]]
+ implicitly[RowMapper[RowB]]
+} \ No newline at end of file