Skip to content

Instantly share code, notes, and snippets.

@sirrobert
Created June 28, 2012 20:25
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 sirrobert/3013692 to your computer and use it in GitHub Desktop.
Save sirrobert/3013692 to your computer and use it in GitHub Desktop.
enum conflicts with sub
module Example;
our $VERSION = '0.1';
enum Something <SOME THING>;
our sub SOME (Str $str) {
return "str: $str";
}
#!~/.perl6/bin/perl6
use v6;
use lib '.';
use Example;
say Example::SOME("thing");
###
# Output:
# Something()
###
# Expected output:
# str: thing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment