Skip to content

Commit

Permalink
[S13-type-casting/methods] We use Cool to mark Str-usable things now;…
Browse files Browse the repository at this point in the history
… refudge
  • Loading branch information
sorear committed Dec 23, 2011
1 parent 29f0d01 commit 307d69f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion S13-type-casting/methods.t
Expand Up @@ -24,7 +24,7 @@ ok +$o == 1.2, 'method Numeric takes care of correct numification';
}
is RT69378.new.Str, 'working', 'call to .Str works';

class RT69378str is Str {
class RT69378str is Cool {
has $.a = 'RT #69378';
method Str() { $.a }
}
Expand All @@ -35,6 +35,7 @@ ok +$o == 1.2, 'method Numeric takes care of correct numification';
is 1.Str.Str, "1", ".Str can be called on Str";
is "hello".Str, "hello", ".Str can be called on Str";

#?niecza skip "this test makes not much sense"
{
# Not sure how to set the derived Str portion to a value, but that would be an
# additional useful test here.
Expand Down

0 comments on commit 307d69f

Please sign in to comment.