You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)))
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»
Migrated from rt.perl.org#128326 (status was 'open')
Searchable as RT128326$
The text was updated successfully, but these errors were encountered: