summaryrefslogtreecommitdiff
path: root/test/files/run/macro-declared-in-trait.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/macro-declared-in-trait.check')
-rw-r--r--test/files/run/macro-declared-in-trait.check15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/macro-declared-in-trait.check b/test/files/run/macro-declared-in-trait.check
new file mode 100644
index 0000000000..d5d9e4e457
--- /dev/null
+++ b/test/files/run/macro-declared-in-trait.check
@@ -0,0 +1,15 @@
+prefix = Expr[Nothing]({
+ final class $anon extends Object with Base {
+ def <init>(): anonymous class $anon = {
+ $anon.super.<init>();
+ ()
+ };
+ <empty>
+ };
+ new $anon()
+})
+it works
+prefix = Expr[Nothing](Macros)
+it works
+prefix = Expr[Nothing](new Macros())
+it works