diff options
Diffstat (limited to 'test/files/run/macro-term-declared-in-trait.check')
-rw-r--r-- | test/files/run/macro-term-declared-in-trait.check | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/macro-term-declared-in-trait.check b/test/files/run/macro-term-declared-in-trait.check new file mode 100644 index 0000000000..0d70ac74f3 --- /dev/null +++ b/test/files/run/macro-term-declared-in-trait.check @@ -0,0 +1,15 @@ +prefix = Expr[Nothing]({ + final class $anon extends AnyRef 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 |