summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-04-25 18:33:05 -0700
committerPaul Phillips <paulp@improving.org>2012-04-25 19:24:38 -0700
commit8fc543b5dd7e6a8fa1827cc9e9d65e721cae140e (patch)
tree1de34b2aed1ad9bb30cb38977c9f68da6b7a729c /test/files
parent1297d87d5e5bfa25022568b6e20fbd92f6d6c40a (diff)
downloadscala-8fc543b5dd7e6a8fa1827cc9e9d65e721cae140e.tar.gz
scala-8fc543b5dd7e6a8fa1827cc9e9d65e721cae140e.tar.bz2
scala-8fc543b5dd7e6a8fa1827cc9e9d65e721cae140e.zip
Trying to set an example in the land of macros.
Hopefully there are useful examples to be had in here. Please note that you should never be testing "x.size != 0", use isEmpty or nonEmpty. Even if these happen to be small collections, it's not a habit you want to form: size is O(n) on a number of collections. (Most pointedly, Lists.)
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/macro-reify-freevars.check6
-rw-r--r--test/files/run/macro-reify-tagless-a.check6
2 files changed, 6 insertions, 6 deletions
diff --git a/test/files/run/macro-reify-freevars.check b/test/files/run/macro-reify-freevars.check
index 02a6a7436b..068742f0b6 100644
--- a/test/files/run/macro-reify-freevars.check
+++ b/test/files/run/macro-reify-freevars.check
@@ -1,3 +1,3 @@
-reflective compilation has failed:
-
-macro expansion contains free term variable code defined by map in Macros_1.scala:8:9. have you forgot to use eval when splicing this variable into a reifee? if you have troubles tracking free term variables, consider using -Xlog-free-terms
+reflective compilation has failed:
+
+Macro expansion contains free term variable code defined by map in Macros_1.scala:8:9. Have you forgotten to use eval when splicing this variable into a reifee? If you have troubles tracking free term variables, consider using -Xlog-free-terms
diff --git a/test/files/run/macro-reify-tagless-a.check b/test/files/run/macro-reify-tagless-a.check
index b58cff19bc..4ee11190d6 100644
--- a/test/files/run/macro-reify-tagless-a.check
+++ b/test/files/run/macro-reify-tagless-a.check
@@ -1,3 +1,3 @@
-reflective compilation has failed:
-
-macro expansion contains free type variable T defined by foo in Impls_Macros_1.scala:7:13. have you forgot to use c.TypeTag annotation for this type parameter? if you have troubles tracking free type variables, consider using -Xlog-free-types
+reflective compilation has failed:
+
+Macro expansion contains free type variable T defined by foo in Impls_Macros_1.scala:7:13. Have you forgotten to use c.TypeTag annotation for this type parameter? If you have troubles tracking free type variables, consider using -Xlog-free-types