# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #125120]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=125120 >
<andreoss> m: enum X<A B C>; enum Q<D E F>; multi infix:«~~»(X $a, Q
$b) { True # all X match all Q }; say A ~~ F;
<camelia> rakudo-moar 176304: OUTPUT«Error while constructing error
object:Could not locate compile-time value for symbol
Syntax::Missing===SORRY!===Cannot iterate object with P6str
representation»
<andreoss> works in REPL
<RabidGravy> not for me it doesn't
<masak> andreoss: that '#' turns everything after it into a comment.
<masak> m: enum X<A B C>; enum Q<D E F>; multi infix:«~~»(X $a, Q $b) { True
<camelia> rakudo-moar 176304: OUTPUT«Error while constructing error
object:Could not locate compile-time value for symbol
Syntax::Missing===SORRY!===Cannot iterate object with P6str
representation»
<masak> same error.
<masak> (which is Less Than Awesome, granted)
* masak submits LTA rakudobug
<andreoss> m: enum X<A B C>; enum Q<D E F>; multi infix:«~~»(X $a, Q
$b) { True #`{all X match all Q} }; say A ~~ F;
<camelia> rakudo-moar 176304: OUTPUT«False»
<masak> m: sub foo { True
12:13 <+camelia> rakudo-moar 176304: OUTPUT«===SORRY!=== Error while
compiling /tmp/IPnz50B8lgMissing block [...]
<masak> hm.
<masak> m: enum X <A>; multi infix:«~~»(X $a, X $b) { True
<camelia> rakudo-moar 176304: OUTPUT«Error while constructing error
object:Could not locate compile-time value for symbol
Syntax::Missing===SORRY!===Cannot iterate object with P6str
representation»
<masak> heh, the enum is an irreducible part of the LTA bug. :)
<masak> m: enum X <A>; sub foo(X $a) { True
<camelia> rakudo-moar 176304: OUTPUT«Error while constructing error
object:Could not locate compile-time value for symbol
Syntax::Missing===SORRY!===Cannot iterate object with P6str
representation»
<masak> m: enum X <A>; sub foo(A $a) { True
<camelia> rakudo-moar 176304: OUTPUT«Error while constructing error
object:Could not locate compile-time value for symbol
Syntax::Missing===SORRY!===Cannot iterate object with P6str
representation»
<masak> ...and it doesn't have to be a type object (X), it can also be
an enum (A).