avoid a type assertion panic with generic code
I was wrongly assumed that, if `used` has an `Elem` method, then `origin` must too. But it does not if it's a type parameter. Add a test case too, which panicked before the fix. Fixes #577.pull/581/head
parent
8ad374d2fb
commit
9d46fe917a
Loading…
Reference in New Issue