[perl #130502] [LTA] error message complains too much about Metamodel.nqp (Buf.new('0'))
[email protected] ("Jan-Olof Hendig via RT") Sat, 10 Mar 2018 06:27:48 -0800
| Newsgroups | perl.perl6.compiler |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 04 Jan 2017 14:21:15 -0800, [email protected] wrote: > 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 > > Fixed with commit https://github.com/rakudo/rakudo/commit/f230224d27bb6d47746de836113b07bf9a4ebcc0 > > 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?