This works now as expected: $ perl6 -e 'role Cup[::Contents] { }; class EggNog { }; my Cup of EggNog $mug; $mug.WHAT.perl.say' Cup[EggNog]
Since the test in integration/advent2009-day18.t is unfudged and runs fine in spectests, I'm closing this ticket.