aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/pos/t7987/Test_2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/pos/t7987/Test_2.scala')
-rw-r--r--tests/disabled/macro/pos/t7987/Test_2.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/disabled/macro/pos/t7987/Test_2.scala b/tests/disabled/macro/pos/t7987/Test_2.scala
new file mode 100644
index 000000000..aaa21ec4c
--- /dev/null
+++ b/tests/disabled/macro/pos/t7987/Test_2.scala
@@ -0,0 +1,12 @@
+class C[T] {
+ def foo = 0
+}
+
+object Test {
+ implicit def AnyToC[T](a: Any): C[T] = new C[T]
+ // was: "macro not expanded"
+ Macro {
+ "".foo
+ ()
+ }
+}