speckleworks / SpeckleCore

Check a brand new Speckle at: https://github.com/specklesystems
https://speckle.systems
MIT License
38 stars 17 forks source link

Patch for unrolling refs targeting Lists #102

Closed mishaelnuh closed 5 years ago

mishaelnuh commented 5 years ago

Step 0:

Expected Behaviour

SpeckleAbstract refs should unroll even if referring to lists.

Actual Behaviour

If the list ref is referring to is a value type and not a reference type (e.g., 'List'), it will return null.

Affected Projects

SpeckleCore

Proposed Solution (if any)

Convert target to IEnumerable and cast to object instead of converting to IEnumerable<object>.