[perl #132794] Junction as default value of MAIN param hangs forever

[email protected] (Pawe?? Pabian)
Newsgroups perl.perl6.compiler
Message-ID <[email protected]>
# New Ticket Created by  Paweł Pabian 
# Please include the string:  [perl #132794]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=132794 >


$ perl6 -e 'sub MAIN ( $x = 1|2 ) { }'

Following oneliner will hang forever on Rakudo 2018.01.
Error exists for all type of Junctions.
Doesn't matter if they are built by infix "1|2" or by method "any(1,2)".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.