diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-02-21 21:48:16 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-21 21:56:09 +0100 |
commit | 31b52ed651e58a68d478aabe41c62287b6d4d718 (patch) | |
tree | 15d3d74c2a7b1b76de62f9e5b8abd4225718551c /test/files/neg/macro-bundle-wrongcontext-b.check | |
parent | 42031708b25f7252fab9992fe444651f8c141e40 (diff) | |
download | scala-31b52ed651e58a68d478aabe41c62287b6d4d718.tar.gz scala-31b52ed651e58a68d478aabe41c62287b6d4d718.tar.bz2 scala-31b52ed651e58a68d478aabe41c62287b6d4d718.zip |
bundles now reject invalid context types
Vanilla macros only allow blackbox.Context, whitebox.Context and
PrefixType refinements thereof. Bundles should behave in the same way.
Diffstat (limited to 'test/files/neg/macro-bundle-wrongcontext-b.check')
-rw-r--r-- | test/files/neg/macro-bundle-wrongcontext-b.check | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/macro-bundle-wrongcontext-b.check b/test/files/neg/macro-bundle-wrongcontext-b.check new file mode 100644 index 0000000000..9c94c3bc34 --- /dev/null +++ b/test/files/neg/macro-bundle-wrongcontext-b.check @@ -0,0 +1,4 @@ +macro-bundle-wrongcontext-b.scala:10: error: not found: value Bundle + def foo: Any = macro Bundle.impl + ^ +one error found |