Skip to content

Nullable Reference Types support #2042

@jonpryor

Description

@jonpryor

C# has a proposal for "nullable reference types": https://github.com/dotnet/csharplang/blob/master/proposals/nullable-reference-types.md

Under this proposal, a string value parameter could not be null, while a string? value parameter could be null.

As It Turns Out™, Android 9 is getting nullable information as well: https://android-developers.googleblog.com/2018/08/android-pie-sdk-is-now-more-kotlin.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+blogspot%2FhsDu+%28Android+Developers+Blog%29

We should figure out how the Kotlin nullable and non-nullable reference type information is stored (.class file attributes? XML files? other?) and update generator so that we can "forward" that information to a future Mono.Android.dll version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions