Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VB compiler supports/erases nullable references in crefs. #41080

Open
CyrusNajmabadi opened this issue Jan 19, 2020 · 3 comments
Open

VB compiler supports/erases nullable references in crefs. #41080

CyrusNajmabadi opened this issue Jan 19, 2020 · 3 comments

Comments

@CyrusNajmabadi
Copy link
Member

VB allows you to write:

    ''' <summary>
    ''' <see cref="Integer?"/>
    ''' </summary>

but emits

<see cref="T:System.Int32"/>

for that.

Note: C# warns in this case as something invalid. If you want to reference a nullable type at the top level, you need to write it as <see cref="Nullable{SomeTName}"/>

@CyrusNajmabadi
Copy link
Member Author

I feel like this is either a VB compiler (or potentially language) issue.

@sharwell
Copy link
Member

sharwell commented Jan 19, 2020

If you want to reference a nullable type at the top level

It is not possible to reference a constructed nullable type at the top level (there is no corresponding syntax to generate for the documentation file). dotnet/csharplang#401 is a request to add support for this.

@CyrusNajmabadi
Copy link
Member Author

It is not possible to reference a constructed nullable type at the top level

Sure. I'm just saying that even just referencing Nullable{T} itself needs to be done in the above way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants