Skip to content

Nameof on a generic type allows specifying bogus type arguments #7416

@cartermp

Description

@cartermp

Given this:

type C<'T>() = class end

let name = nameof C<int, string, PhillipCarter>

The code compiles and name is given "C".

This should fail to compile, since C<int, string, PhillipCarter> is not valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions