Skip to content

Type Def issues #271

@gitperson1980

Description

@gitperson1980

A slight issue in the new optimized paradigm

type BarArray  []float64

type Foo struct {
  Bar  BarArray
  Baz int
}

expr Foo.Bar[0] will fail
interface conversion: interface {} is int, not string | Foo.Bar[0]

following will work fine as Bar is defined as an intrinsic type

type Foo struct {
  Bar []float64
  Baz int
}

Can there be a resolution to this? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions