Skip to content

Type-check logical operator operands as Bool #179

Description

@timfennis

Problem

The analyser infers Bool for and / or expressions but currently only analyses the operands; it does not report a type error when a known operand type is incompatible with Bool.

Desired outcome

Emit a diagnostic for a known non-Bool operand while preserving the existing Any fallback behaviour.

Location

ndc_analyser/src/analyser.rs, Expression::Logical.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions