-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
go/types: cyclical type declaration accepted w/o error #8699
Labels
early-in-cycle
A change that should be done early in the 3 month dev cycle.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Comments
In some cases the type-checker ignores the fact that the underlying type is incomplete: When declaring T, as soon as we know that we have an array, T is declared as such with length 0 (and no element type), but that is sufficient for len(a) to get a useful length (namely 0). Fixing this is subtle; it's also an academic case. Delay to 1.5. Labels changed: added release-go1.5, removed release-go1.4. |
rsc
changed the title
go/types: cyclical type declaration accepted w/o error
x/tools/go/types: cyclical type declaration accepted w/o error
Apr 14, 2015
griesemer
changed the title
x/tools/go/types: cyclical type declaration accepted w/o error
go/types: cyclical type declaration accepted w/o error
Jul 31, 2015
griesemer
added
early-in-cycle
A change that should be done early in the 3 month dev cycle.
NeedsFix
The path to resolution is known, but the work has not been done.
labels
Dec 8, 2017
Change https://golang.org/cl/115457 mentions this issue: |
gopherbot
pushed a commit
that referenced
this issue
May 31, 2018
For debugging only; disabled (dead code) by default unless internal constant trace flag is set to true. For #8699. Change-Id: Ib7b272c6ac8efacccbbbe24650ef500c5a9ddcf5 Reviewed-on: https://go-review.googlesource.com/115457 Reviewed-by: Alan Donovan <[email protected]>
Change https://golang.org/cl/116815 mentions this issue: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
early-in-cycle
A change that should be done early in the 3 month dev cycle.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
The text was updated successfully, but these errors were encountered: