NoPaste

Can't modify constant item: VUndef

von godsmacker

SNIPPET_TEXT:
  1. use v6;
  2.  
  3. class Foo {
  4.     has @:a;
  5.  
  6.     method bar (::?CLASS ::class:) {
  7.         @:a = ();
  8.     }
  9. }
  10.  
  11. Foo.new.bar();

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN