Browse files

X::TypeCheck::MacroUnquote

  • Loading branch information...
1 parent 683e079 commit 4fd9dadffdb84fb319aa6ff3ecc094722a0209f6 @moritz moritz committed Aug 27, 2012
Showing with 27 additions and 0 deletions.
  1. +27 −0 lib/X/TypeCheck/MacroUnquote.pod
View
27 lib/X/TypeCheck/MacroUnquote.pod
@@ -0,0 +1,27 @@
+=begin pod
+
+=TITLE class X::TypeCheck::MacroUnquote
+
+ class X::TypeCheck::MacroUnquote is X::TypeCheck does X::Comp { }
+
+Compile time error thrown when a L<Macro> or an unquote/hole in a C<quasi>
+quote does not return an L<AST>.
+
+For example
+
+ macro a { 'foo' }
+ say a
+
+dies with
+
+ ===SORRY!===
+ Type check failed in macro application; expected AST but got Str
+
+To fix, instead write
+
+ macro a {
+ quasi { 'foo' }
+ }
+ say a; # foo
+
+=end pod

0 comments on commit 4fd9dad

Please sign in to comment.