cmd/compile: infinite recursion in types2 #50782
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
release-blocker
Milestone
This code below causes an infinite recursion in types2. This may already be fixed by some changes in flight (such as https://go-review.googlesource.com/c/go/+/379414/ for issue #48962 ), but I wanted to point out this simple example as another test case, if nothing else:
This should not be valid code - in absDifference, we are constraining T to be also ~struct { Value T }, and also there is nothing that requires that T satisfies Numeric. But would be good if the type checker doesn't have an infinite recursion.
@griesemer @findleyr
The text was updated successfully, but these errors were encountered: