# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #107960]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=107960 >
<masak> nom: say &foo; sub foo {}
<p6eval> nom 38165a: OUTPUT«sub foo() { ... }»
<masak> nom: say &foo
<p6eval> nom 38165a: OUTPUT«===SORRY!===Symbol '&foo' not predeclared
in <anonymous> (/tmp/7YmgXCNZA0:1)»
<moritz> and not postdeclared either :-)
<masak> I don't really like the error message, because the symbol
'&foo' is not predeclared even in the former... right.
* masak submits rakudobug for LTA error message
<masak> the issue with the error message has something to do with that
it doesn't correctly identify the error.
<masak> '&foo' doesn't need to be predeclared; it just needs to be declared.
<moritz> aye; rakudo just has a single code path for all the
undeclared symbol errors
<moritz> and everything else needs to be predeclared