codon icon indicating copy to clipboard operation
codon copied to clipboard

a ... b syntax does not support floats

Open elisbyberi opened this issue 2 years ago • 0 comments

a ... b syntax used in match already works for integers, but it does not work for floats.

a = 2.0
match a: 
    case 2.0 ... 10.5:  # error: unexpected dedent
        print('wow!')

elisbyberi avatar May 06 '23 01:05 elisbyberi