dotnet/roslyn

Improve pointer dereference message clarity

Open

#60.362 geöffnet am 24. März 2022

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)C# (4.257 Forks)batch import
Concept-Diagnostic ClarityFeature - Function Pointershelp wanted

Repository-Metriken

Stars
 (20.414 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)

Beschreibung

    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.

Contributor Guide