Skip Menu |
Report information
Id: 128326
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: hinrik <hinrik.sig [at]>

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)

Subject: Parsing of nested typenames fails
Download (untitled) / with headers
text/plain 368b
class Foo { has $.bar; method CALL-ME ($b) { => $b) } }; say Foo(Int(3434)) The above fails to parse, with "Unable to parse expression in typename; couldn't find final ')'". Is there any reason it shouldn't parse? The following do parse however: TypeA(5.TypeB) # won't work out of the box if TypeB is a custom type TypeA($ = TypeB(5)) TypeA($(TypeB(5)))
Download (untitled) / with headers
text/plain 590b
To add my findings: It can be replicated with core types alone. That last one is curious... "Cannot find method"..? <Zoffix> m: say Int(Int(3434)) <camelia> rakudo-moar ac0dcd: OUTPUT«===SORRY!=== Error while compiling <tmp>␤Unable to parse expression in typename; couldn't find final ')' ␤at <tmp>:1␤------> say Int(Int(⏏3434))␤» <Zoffix> m: say Int(+Int(3434)) <camelia> rakudo-moar ac0dcd: OUTPUT«3434␤» <Zoffix> m: say Int({Int(3434)}) <camelia> rakudo-moar ac0dcd: OUTPUT«Cannot find method 'Int' on object of type Block␤ in block <unit> at <tmp> line 1␤␤»

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at