# New Ticket Created by raiph # Please include the string: [perl #121296] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=121296 >
my Int constant foo = 1 # should work and does in rakudo my constant foo of Int = 1 # should work and does not in rakudo ---- using #perl6 evalbot: r: my Int constant foo = 1 rakudo-parrot 5fe2db, rakudo-jvm 5fe2db, rakudo-moar 5fe2db: ( no output ) r: my constant foo of Int = 1 rakudo-jvm 5fe2db: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/tmpfileâ€Wrong number of arguments passed; expected 1..1, but got 1â€at /tmp/tmpfile:1â€------> â€Â» ..rakudo-moar 5fe2db: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/tmpfileâ€Unexpected named parameter 'SYMBOL' passedâ€at /tmp/tmpfile:1â€------> â€Â» ..rakudo-parrot 5fe2db: OUTPUT«[31m===[0mSORRY![31m===[0m Error while compiling /tmp/tmpfileâ€too many named arguments: 1 passed, 0 usedâ€at /tmp/tmpfile:1â€------> â€Â» std: my constant foo of Int = 1 std 09dda5b: OUTPUT«ok 00:01 122mâ€Â»