We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 683e079 commit 4fd9dadCopy full SHA for 4fd9dad
lib/X/TypeCheck/MacroUnquote.pod
@@ -0,0 +1,27 @@
1
+=begin pod
2
+
3
+=TITLE class X::TypeCheck::MacroUnquote
4
5
+ class X::TypeCheck::MacroUnquote is X::TypeCheck does X::Comp { }
6
7
+Compile time error thrown when a L<Macro> or an unquote/hole in a C<quasi>
8
+quote does not return an L<AST>.
9
10
+For example
11
12
+ macro a { 'foo' }
13
+ say a
14
15
+dies with
16
17
+ ===SORRY!===
18
+ Type check failed in macro application; expected AST but got Str
19
20
+To fix, instead write
21
22
+ macro a {
23
+ quasi { 'foo' }
24
+ }
25
+ say a; # foo
26
27
+=end pod
0 commit comments