Skip to content

Parametric Types #180

@Lincoln-Hannah

Description

@Lincoln-Hannah

Is there a syntax that works with parametric types. The below gives an error.

struct A{T}
    a::Int64
end

x = A{1}(1)

@Setfield.set x.a = 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions