Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created January 6, 2016 13:12
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 zoffixznet/3185815f60f72eaf34e4 to your computer and use it in GitHub Desktop.
Save zoffixznet/3185815f60f72eaf34e4 to your computer and use it in GitHub Desktop.
zoffix@:/tmp/tmp.MPQYRB1aVB$ cat Foo.pm6
class Foo {
method bar { say "42" }
}
zoffix@:/tmp/tmp.MPQYRB1aVB$ perl6 -I. -MFoo -e 'loop { say Foo.new.bar; EVALFILE "Foo.pm6"; sleep 2}'
42
True
===SORRY!=== Error while compiling /tmp/tmp.MPQYRB1aVB/EVAL_0
Redeclaration of symbol Foo
at /tmp/tmp.MPQYRB1aVB/EVAL_0:1
------> class Foo⏏ {
expecting any of:
generic role
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment