Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created December 9, 2019 08:58
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 Whateverable/f884c3312718c8801f9db6cae5ffbc62 to your computer and use it in GitHub Desktop.
Save Whateverable/f884c3312718c8801f9db6cae5ffbc62 to your computer and use it in GitHub Desktop.
evalable6
role R[Str:D $n]{our Str:D $n = $n};role R2[Str:D $n]{also does R[$n]};class A does R2['asd'] {};say A.n
(exit code 1)
===SORRY!===
Cannot use variable $n in declaration to initialize itself
at /tmp/G_HLIMHEbe:1
------> role R[Str:D $n]{our Str:D $n = $⏏n};role R2[Str:D $n]{also does R[$n]};cl
expecting any of:
term
Other potential difficulties:
Redeclaration of symbol '$n'
at /tmp/G_HLIMHEbe:1
------> role R[Str:D $n]{our Str:D $n⏏ = $n};role R2[Str:D $n]{also does R[$n]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment