Skip to content

Commit 6290332

Browse files
committed
Don't try to MRO things that don't have one
properly declare types for these two items
1 parent a08b1a0 commit 6290332

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

type-graph.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class Attribute
5050

5151
[Domain-specific]
5252
# VM
53+
role Systemic
5354
class Distro
5455
class Kernel
5556
class VM does Systemic
@@ -483,4 +484,4 @@ class CX::Succeed does X::Control
483484
class CX::Proceed does X::Control
484485

485486
[Core]
486-
class Test
487+
module Test

xt/type-graph.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ my $t = Perl6::TypeGraph.new-from-file('type-graph.txt');
1010

1111
for $t.sorted -> $type {
1212
next if $type.name.index('Metamodel').defined || $type.name eq 'PROCESS';
13-
next if $type.packagetype eq 'role';
13+
next if $type.packagetype eq 'role'|'module';
1414
next if $type.name eq 'Failure';
1515
try {
1616
my $got = ~$type.mro;

0 commit comments

Comments
 (0)