reticulated icon indicating copy to clipboard operation
reticulated copied to clipboard

Splicing a list is not working when it's a field of a class.

Open migeed-z opened this issue 10 years ago • 1 comments

When creating a class, initially setting one if it's fields to None/Empty list then mutating the value of that field to a list and try to splice it, I get the following error:

Right hand side of assignment was expected to be of type Dyn, but value slice(None, 3, None) provided instead. (code SINGLE_ASSIGN_ERROR)

where 3 is the index where it was spliced.

Attached is a file with an example: dealer.python.zip

migeed-z avatar Apr 01 '16 17:04 migeed-z

I can reproduce this error when running under guarded, but not transient. If you're encountering it with transient, please let me know so we can figure out why your system is acting different. Otherwise, thanks for the report.

mvitousek avatar Apr 02 '16 14:04 mvitousek