Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created December 10, 2019 03:41
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/f770353c2e68e868108d6d0aacf5a4dd to your computer and use it in GitHub Desktop.
Save Whateverable/f770353c2e68e868108d6d0aacf5a4dd to your computer and use it in GitHub Desktop.
evalable6
class A { method b (Str:D $name) { say 'Defined' }; }; my $c; A.new.b(Str)
(exit code 1)
Parameter '$name' of routine 'b' must be an object instance of type 'Str', not a type object of type 'Str'. Did you forget a '.new'?
in method b at /tmp/vgoKj8fsuP line 1
in block <unit> at /tmp/vgoKj8fsuP line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment