Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parametric Types #180

Open
Lincoln-Hannah opened this issue Jul 31, 2024 · 1 comment
Open

Parametric Types #180

Lincoln-Hannah opened this issue Jul 31, 2024 · 1 comment

Comments

@Lincoln-Hannah
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants