MuranoPL treats iterator as single object instead of list for list contract
Bug #1596007 reported by
Konstantin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Murano |
Fix Released
|
High
|
Konstantin | ||
Liberty |
Won't Fix
|
High
|
Konstantin | ||
Mitaka |
Won't Fix
|
High
|
Konstantin | ||
Newton |
Fix Released
|
High
|
Konstantin |
Bug Description
How to reproduce
Create following classes
Name: T
Properties:
prop:
Contract:
- $.string()
Default: null
Usage: InOut
---
Name: TestReal
Methods:
test:
Body:
- $t: new(T, $this, prop => ['1', '1', '1'].where($))
- Return: $t.prop[1]
Run TestReal::test() method
Expected result
> '1'
Observed result:
IndexError: tuple index out of range
Changed in murano: | |
importance: | Undecided → High |
assignee: | nobody → Konstantin (ksnihyr) |
assignee: | Konstantin (ksnihyr) → nobody |
milestone: | none → 2.0.x |
assignee: | nobody → Konstantin (ksnihyr) |
Changed in murano: | |
milestone: | 2.0.x → newton-2 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/334591
Review: https:/