Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Nyi coercive types #104

Closed
wants to merge 4 commits into from

2 participants

@timo
Collaborator

turns "two terms in a row" or "missing block" into "coercive type declarations not yet implemented" (and also removes the 'is' that came after the feature name and looked strange).

It passes the whole spec test suite.

@moritz
Owner

I've squashed those commits into one, and applied them as 9c59a13

@moritz moritz closed this
@timo timo deleted the unknown repository branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +1 −0  src/Perl6/Grammar.pm
  2. +1 −1  src/core/Exception.pm
View
1  src/Perl6/Grammar.pm
@@ -2612,6 +2612,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
]
# parametric type?
<.unsp>? [ <?before '['> '[' ~ ']' <arglist> ]?
+ <.unsp>? [ <?before '('> '(' ~ ')' <arglist> <.NYI("coercive type declarations")>]?
[<.ws> 'of' <.ws> <typename> ]?
}
View
2  src/core/Exception.pm
@@ -404,7 +404,7 @@ my role X::Pod { }
my class X::NYI is Exception {
has $.feature;
- method message() { "$.feature is not yet implemented. Sorry. " }
+ method message() { "$.feature not yet implemented. Sorry. " }
}
my class X::Comp::NYI is X::NYI does X::Comp { };
Something went wrong with that request. Please try again.