dotnet/roslyn

Improve pointer dereference message clarity

Open

#60.362 aperta il 24 mar 2022

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)C# (4257 fork)batch import
Concept-Diagnostic ClarityFeature - Function Pointershelp wanted

Metriche repository

Star
 (20.414 star)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

    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.

Guida contributor