test/lit: Fix invalid type inference test

This broke after b8cd163978, but
is invalid code to start with; this would have previously
crashed the code generator had the code actually been compiled.

(Allowing implicit conversion to bool would be a separate debate.)
This commit is contained in:
David Nadlinger 2021-03-21 01:46:33 +00:00 committed by Sebastien Bourdeauducq
parent c1733eef49
commit 9a9290a72d

View File

@ -33,8 +33,8 @@ j = []
j += [1.0] j += [1.0]
# CHECK-L: j:list(elt=float) # CHECK-L: j:list(elt=float)
1 if a else 2 1 if c else 2
# CHECK-L: 1:numpy.int? if a:numpy.int? else 2:numpy.int?:numpy.int? # CHECK-L: 1:numpy.int? if c:bool else 2:numpy.int?:numpy.int?
True and False True and False
# CHECK-L: True:bool and False:bool:bool # CHECK-L: True:bool and False:bool:bool