Skip to content

cmd/go2go: missing error for use of uninstantiated type argument #40684

Closed
@griesemer

Description

@griesemer
package p

type A[type T] int

func f[type P]()

func _() {
	_ = f[A]
}

passes type-checking without error. But it should not be possible to instantiate f[A] with an uninstantiated A.

Follow-up on #40038.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions