# New Ticket Created by  "Hinrik Örn Sigurðsson" 
# Please include the string:  [perl #128326]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128326 >


class Foo { has $.bar; method CALL-ME ($b) { self.new(bar => $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)))

Reply via email to