# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
# Please include the string: [perl #130502]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=130502 >
Code:
say Buf.new('0')
Result:
Type check failed in initializing element #0 to Buf; expected uint8 but got Str
("0")
in any at gen/moar/Metamodel.nqp line 1727
in block <unit> at /tmp/9PmeQTevmg line 1
Actually thrown at:
in any at gen/moar/Metamodel.nqp line 3072
in any at gen/moar/Metamodel.nqp line 1727
in block <unit> at /tmp/9PmeQTevmg line 1
It points three times to a line in Metamodel.nqp, and only once to the actual
user file. Perhaps there is a way to improve it? Maybe not just for this case,
but for any exception?