Skip to content

Commit

Permalink
Re-enable sigil type checks in parameter lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Dec 18, 2009
1 parent 041178b commit 21558a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Perl6/Compiler/Signature.pm
Expand Up @@ -208,9 +208,9 @@ method ast($high_level?) {
elsif $_.sigil ne "" && !$_.invocant {
# May well be a parametric role based type.
my $role_name;
# if $_.sigil eq "@" { $role_name := "Positional" }
# elsif $_.sigil eq "%" { $role_name := "Associative" }
# elsif $_.sigil ne ":" { $role_name := "Callable" }
if $_.sigil eq "@" { $role_name := "Positional" }
elsif $_.sigil eq "%" { $role_name := "Associative" }
elsif $_.sigil ne ":" { $role_name := "Callable" }
if $role_name {
my $role_type := PAST::Var.new( :name($role_name), :namespace(''), :scope('package') );
if !$_.nom_type {
Expand Down

0 comments on commit 21558a9

Please sign in to comment.