# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #69522]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=69522 >


<masak> rakudo: sub foo { "OH NOES" }; constant foo = 5; say foo
<p6eval> rakudo ffe648: OUTPUT«invoke() not implemented in class 'Integer' [...]
<masak> rakudo: constant foo = 5; sub foo { "OH NOES" }; say foo
<p6eval> rakudo ffe648: OUTPUT«Redefinition of routine foo␤5␤»
* masak submits LTA-errmess rakudobug

Both of these should be compile-time errors, and both could be nicer.
The second one is strictly speaking not a redefinition of a routine.

Reply via email to