-
-
Save zoffixznet/3185815f60f72eaf34e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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