diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-02-21 22:18:09 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-21 22:24:31 +0100 |
commit | da1032caa4ee4c780b5fff3056dd816623a53737 (patch) | |
tree | bf819b16e339bbcec8ed2d260b86b7abd40efaed /test/files/neg/macro-bundle-polymorphic.check | |
parent | 31b52ed651e58a68d478aabe41c62287b6d4d718 (diff) | |
download | scala-da1032caa4ee4c780b5fff3056dd816623a53737.tar.gz scala-da1032caa4ee4c780b5fff3056dd816623a53737.tar.bz2 scala-da1032caa4ee4c780b5fff3056dd816623a53737.zip |
prohibits polymorphic bundles
It's not like they were inducing bugs, but I can't see how polymorphism
can be useful for macro bundles, hence imho it's better to reduce the
number of degrees of freedom of the system.
Diffstat (limited to 'test/files/neg/macro-bundle-polymorphic.check')
-rw-r--r-- | test/files/neg/macro-bundle-polymorphic.check | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/neg/macro-bundle-polymorphic.check b/test/files/neg/macro-bundle-polymorphic.check new file mode 100644 index 0000000000..dc6f540f77 --- /dev/null +++ b/test/files/neg/macro-bundle-polymorphic.check @@ -0,0 +1,19 @@ +macro-bundle-polymorphic.scala:36: error: macro bundles must be concrete monomorphic classes having a single constructor with a `val c: Context` parameter + def black1: Any = macro BlackboxBundle1.impl + ^ +macro-bundle-polymorphic.scala:37: error: not found: value BlackboxBundle2 + def black2: Any = macro BlackboxBundle2.impl + ^ +macro-bundle-polymorphic.scala:38: error: not found: value BlackboxBundle3 + def black3: Any = macro BlackboxBundle3.impl + ^ +macro-bundle-polymorphic.scala:40: error: macro bundles must be concrete monomorphic classes having a single constructor with a `val c: Context` parameter + def white1: Any = macro WhiteboxBundle1.impl + ^ +macro-bundle-polymorphic.scala:41: error: not found: value WhiteboxBundle2 + def white2: Any = macro WhiteboxBundle2.impl + ^ +macro-bundle-polymorphic.scala:42: error: not found: value WhiteboxBundle3 + def white3: Any = macro WhiteboxBundle3.impl + ^ +6 errors found |