[perl #128287] [BUG] Type check `Array[Foo]` in module gets confused if `Array[Foo]` was already referenced in another precompiled module.
On Sun, 29 May 2016 10:28:43 -0700, sml...@gmail.com wrote: > It's as if we end up with two "instances" of the same parameterized > type, and the type check gets confused about which one to check > against. If I'm understanding the code correctly, it looks like that's what's happening. The error
[perl #128287] [BUG] Type check `Array[Foo]` in module gets confused if `Array[Foo]` was already referenced in another precompiled module.
Also, if you print the .WHICH values during BEGIN, you'll find that they're consistent, so the problem occurs either when compiling A.pm or reading the precompiled data.