I\'ve a project on which I enabled the new Nullable reference type feature
enable
<
Check out the specification on nullable reference types. It states that var
infers an annotated type for reference types.
The part under the heading nullable implicitly typed local variables reads:
var infers an annotated type for reference types. For instance, in var s = ""; the var is inferred as string?.