Closed anisjonischkeit closed 4 years ago
Good find ... there indeed has been some refactoring for the struct derive to be unified with the more generic BiMapper.
... and as usual it was just a single line
Please re-check with the current version, before I create a new release.
that looks to have fixed it, thank you very much!
when you have a generator that looks like this:
An index out of bounds exception is thrown here: https://github.com/leanovate/gopter/blob/cdb2f0efc0017d6af9f9668577a4cffbbfe31b3b/derived_gen.go#L67
it happens because for some reason
baseSieve
only has a single value (SomeCondition
) butups
has two values (b
andc
) in it. So when you loop overups
and grab the correspondingbaseSieve
item for theup
(ati
) you get that panic.This doesn't happen on the latest release but does happen on master.
minimal example:
This should probably block #60