Skip to content

InvalidOperationException when comparing two nullable numeric values #276

@Hakim83

Description

@Hakim83

The following code was evaluating well till version 2.11.0

interpreter.Eval<bool>("((int?)5)>((double?)4)");

later versions (including current version 2.13.0), throws the following exception:

System.InvalidOperationException : The binary operator GreaterThan is not defined for the types 'System.Nullable`1[System.Int32]' and 'System.Nullable`1[System.Double]'

tested in .NET6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions