use v6.d;

use Test;
use experimental :macros;

plan 1;

# L<S06/Macros>

macro postfix:<!> (Int $n) {
    my $factorial = [*] 1..$n;
    return "$factorial + 0";
}

is 3!, 6, "macro postfix:<!> works";

# vim: ft=perl6
