dotnet/roslyn

Improve pointer dereference message clarity

Open

#60,362 opened on 2022年3月24日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)C# (4,257 forks)batch import
Concept-Diagnostic ClarityFeature - Function Pointershelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

    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.

コントリビューターガイド