Skip to content

Commit

Permalink
X::TypeCheck::MacroUnquote
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Aug 27, 2012
1 parent 683e079 commit 4fd9dad
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions 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.