Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use v6; | ||
use lib $?FILE.IO.parent(2).add("packages/Roles/lib"); | ||
|
||
use Test; | ||
|
||
plan 4; | ||
|
||
# GH #2613 | ||
use GH2613; | ||
my class TestGH2613 does R1 { } | ||
|
||
ok TestGH2613.^does(R1), "class typecheck against short role name"; | ||
ok TestGH2613.^does(GH2613::R1), "class typecheck against full role name"; | ||
ok TestGH2613 ~~ R1, "class smartmatches against short role name"; | ||
ok TestGH2613 ~~ GH2613::R1, "class smartmatches against full role name"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
unit module GH2613; | ||
|
||
role R1 is export { | ||
} |