If branch inference should not trigger for things we don't know, fixes #1530

This commit is contained in:
Dave Halter
2020-03-31 22:46:17 +02:00
parent 604029568c
commit ac33d5dea3
4 changed files with 19 additions and 3 deletions

View File

@@ -43,6 +43,9 @@ else:
def addition(a, b):
if type(a) == type(b):
# Might still be a type error, we might want to change this in the
# future.
#! 9 type-error-operation
return a + b
else:
#! 9 type-error-operation