On Fri, 02 Jun 2017 18:58:22 -0700, [email protected] wrote:
> While chasing some other bugs, came across this one:
>
> <Zoffix__> m: Junction.new.BUILDALL: {}
> <camelia> rakudo-moar ef9872: OUTPUT: «This type (Scalar) does not
> support elems in block <unit> at <tmp> line 1»
>
> Not sure how much it matters in itself, but figured I'd report it, in
> case it's a symptom of a bigger bug.
This can be golfed to just:
Junction.new;
And it has been fixed to throw a better error message now:
➜ Junction.new;
Cannot resolve caller new(Junction: ); none of these signatures match:
(Junction $: \values, Str :$type!, *%_)
(Junction $: Str:D \type, \values, *%_)
According to bisectable¹, it was fixed by a commit² in June.
The 'bigger issue' was possibly RT #131395.
Is `Junction.new` meant to be public API?
If not, do we still need a test for this?
---
[1] https://gist.github.com/Whateverable/13556140482322fd5bf4080092a1d284
[2] https://github.com/rakudo/rakudo/commit/61ecfd511