mirror of
https://github.com/hanzoai/yaegi.git
synced 2026-10-01 00:49:47 +00:00
At variable, function parameter, slice, map or field element assign, if the destination type is an empty interface, the value was never wrapped into a valueInterface (to preserve type mutability in case of re-assign). Now we wrap it in a valueInterface if the source type has a non empty set of methods, to allow a future use as a non empty interface. There are still corner cases, but it extends notably the support of interfaces within the interpreter. Fixes #1355.