On Tue Aug 17 05:38:17 2010, masak wrote:
> <masak> rakudo: sub foo(--> NoSuchType) { say "OH HAI" }
> <p6eval> rakudo b64718: OUTPUT«===SORRY!===␤Unable to parse
> postcircumfix:sym<( )>, couldn't find final ')' [...]
> <masak> rakudo: class A { method foo(--> NoSuchType) { say "OH HAI" } }
> <p6eval> rakudo b64718: OUTPUT«===SORRY!===␤Malformed method at line
> 22, near "foo(--> No"␤»
> <masak> both these error messages could be improved to indicate the
> actual problem.
> <moritz_> agreed
> * masak submits rakudobug
> <masak> std: sub foo(--> NoSuchType) { say "OH HAI" }
> <p6eval> std 32024: OUTPUT«===SORRY!===␤No type
> found after --> [...]
> <masak> std: class A { method foo(--> NoSuchType) { say "OH HAI" } }
> <p6eval> std 32024: OUTPUT«===SORRY!===␤No type
> found after --> [...]
> <masak> 'No type found' isn't spot on either, but it's much better.

Current behavior:

09:14 < [Coke]> rakudo: sub foo(--> NoSuchType) { say "OH HAI" } # RT 77270
09:14 <+camelia> rakudo b2072f: OUTPUT«===SORRY!===␤Type 'NoSuchType' is not
                 declared␤at /tmp/uAYz4pTVgd:1␤------> sub foo(--> NoSuchType⏏)
                 { say "OH HAI" } # RT 77270␤»

Closable with tests.
-- 
Will "Coke" Coleda

Reply via email to