Skip to content

Inference regression with === nothing #26417

@nalimilan

Description

@nalimilan

The return type f(1) used to be inferred as Int on 0.6.2, but on master it's inferred as Union{Int,Nothing}. It still works when using isa Nothing though.

f(x) = x === nothing ? nothing : 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    compiler:inferenceType inferencemissing dataBase.missing and related functionalityregressionRegression in behavior compared to a previous version

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions