Skip to content

Array(T | Array[T]) not well handled #1874

@HoneyryderChuck

Description

@HoneyryderChuck

Given a variable typed as smth or collection of smth, Array(a) does not spread correctly:

# a: Symbol | Array[Symbol]
Array(a).each do |el|
# el is typed as Symbol | Array[Symbol], instead of Symbol

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions