Reports usages of ? where they can be omitted, for example, if the inferred type of assigned expression is not nullable.

Suggests removing redundant ? in type declarations.

示例:


  let x: Int? = 42

在应用快速修复后:


  let x: Int = 42