Skip to content

Commit f297fbc

Browse files
committed
Merge pull request #93 from LLFourn/multi-exporthow
multiple declarators inside DECLARE
2 parents c824a98 + ceab66c commit f297fbc

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

S12-meta/MultiDeclare.pm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package EXPORTHOW {
2+
package DECLARE {
3+
class pokemon is Metamodel::ClassHOW {}
4+
class digimon is Metamodel::ClassHOW {}
5+
}
6+
}

S12-meta/exporthow.t

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22

33
use Test;
4-
plan 10;
4+
plan 11;
55

66
use lib '.';
77

@@ -52,3 +52,11 @@ dies-ok { EVAL 'controller Fat { }' }, 'Imported declarators do not leak out of
5252

5353
throws-like { EVAL 'use t::spec::S12-meta::DeclareBad;' },
5454
X::EXPORTHOW::Conflict, directive => 'DECLARE', declarator => 'class';
55+
56+
{
57+
use t::spec::S12-meta::MultiDeclare;
58+
lives-ok {
59+
pokemon pikachu { }
60+
digimon augmon { }
61+
}, 'multiple DECLAREs work';
62+
}

0 commit comments

Comments
 (0)