Skip to content

cmd/compile: compiler panic for generic alias type #68054

Closed
@griesemer

Description

@griesemer

From #46477 (comment):

The following code snippet causes the Go compiler to panic (https://go.dev/play/p/PBvqgMjEs4S?v=gotip)

package main

type Seq[V any] = func(yield func(V) bool)

func f[E any](seq Seq[E]) {
	return
}

func main() {
	f(Seq[int](nil))
}

Marking for 1.23 in case it's a trivial oversight that we can easily address. But not a release blocker.

cc: @mdempsky for visibility. This looks like a noder issue.

Metadata

Metadata

Labels

FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions