This commit is contained in:
Mads Torgersen 2018-12-07 11:29:35 -08:00 committed by GitHub
parent cdb8f8b57b
commit cfb76d4dad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -310,7 +310,7 @@ If the type of `E` is a nullable reference type `C?` and the null state of `E` i
The nullability of the type inferred for `x` is determined as described above, based on the annotation context of the `var`, just as if the type had been given explicitly in that position.
## Type inference for `var`
## Type inference for `var?`
The type inferred for local variables declared with `var?` is independent of the null state of the initializing expression.