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

Reference unbindings behaves differently for reference template type #46

Open
Zettelkasten opened this issue Oct 20, 2021 · 0 comments
Open

Comments

@Zettelkasten
Copy link
Owner

Zettelkasten commented Oct 20, 2021

If you have some template function

func foo[T](x: Ref[T]) {
 !y: T = !x;
}

you would expect !x to always take Ref[T] and make T from it.
But this doesn't work currently if T itself is a reference: e.g. if T = Ref[Int], then !x would give you Ref[Int] (instead you'd like to get Int).

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

1 participant