C# Extension Linq Incorrect Typing

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Linq does not properly detect null

        var list = new List<string>{"1", "2", "3"};
        var testing = list.Select(b => b.ToString()).ToList();

testing variable has the type of List<string>? on hover which doesn’t make sense since testing cannot be null

Steps to Reproduce

Download C# from anysphere extension version 1.0.1
using C# .Net Version 8.0

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.38 (Universal)

Does this stop you from using Cursor

No - Cursor works, but with this issue

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.