dotnet/roslyn

Improve pointer dereference message clarity

Open

#60 362 ouverte le 24 mars 2022

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)C# (4 257 forks)batch import
Concept-Diagnostic ClarityFeature - Function Pointershelp wanted

Métriques du dépôt

Stars
 (20 414 stars)
Métriques de merge PR
 (Merge moyen 6j 17h) (256 PRs mergées en 30 j)

Description

    public unsafe void M(delegate*<void> d) {
        d->Invoke();
    }

This currently gives error CS0193: The * or -> operator must be applied to a pointer. Function pointers are pointers, but they can't be dereferenced and the error could be improved.

Guide contributeur