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

Are instances local compile-time known? #1309

Open
jaehyun1ee opened this issue Sep 20, 2024 · 1 comment
Open

Are instances local compile-time known? #1309

jaehyun1ee opened this issue Sep 20, 2024 · 1 comment

Comments

@jaehyun1ee
Copy link
Contributor

A follow-up issue from #1305.

Section 18.1. Compile-time known and local compile-time known values lists,

Instances constructed by instance declarations (Section 11.3) and constructor invocations.

as a local compile-time known value.

But since constructor arguments are compile-time known, shouldn't instances also be compile-time known?
Or are there cases where we need instances to be local compile-time known?

@ChrisDodd
Copy link
Contributor

"local compile-time known" is more restrictive than "compile-time-known", so this is more a matter of instances being allowed to be local compile time known, even though their constructor arguments may not be.

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