Skip to content

Instantly share code, notes, and snippets.

@peschwa
Last active September 19, 2015 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peschwa/30639506d16f937f393d to your computer and use it in GitHub Desktop.
Save peschwa/30639506d16f937f393d to your computer and use it in GitHub Desktop.
$ ./perl6-j -MTest -e'my $intval = val("42"); is +$intval, 42'
ok 1 -
$ ./perl6-j -MTest -e'my $intval = val("42"); isa-ok $intval, Str; is +$intval, 42'
ok 1 - The object is-a 'Str'
not ok 2 -
# Failed test at -e line 1
# expected: '42'
# got: '1'
$ ./perl6-j -MTest -e'my $intval = val("42"); $intval.^isa(IntStr); say +$intval'
42
$ ./perl6-j -MTest -e'my $intval = val("42"); $intval.isa(IntStr); say +$intval'
1
$ ./perl6-j -MTest -e'my $intval = val("42"); $intval.isa("IntStr"); say +$intval'
42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment