Refactor CallOutcome to Result (#16161)
This commit is contained in:
@@ -10,9 +10,10 @@ reveal_type(-3 // 3) # revealed: Literal[-1]
|
||||
reveal_type(-3 / 3) # revealed: float
|
||||
reveal_type(5 % 3) # revealed: Literal[2]
|
||||
|
||||
# TODO: We don't currently verify that the actual parameter to int.__add__ matches the declared
|
||||
# formal parameter type.
|
||||
reveal_type(2 + "f") # revealed: int
|
||||
# TODO: This should emit an unsupported-operator error but we don't currently
|
||||
# verify that the actual parameter to `int.__add__` matches the declared
|
||||
# formal parameter type.
|
||||
reveal_type(2 + "f") # revealed: Unknown
|
||||
|
||||
def lhs(x: int):
|
||||
reveal_type(x + 1) # revealed: int
|
||||
|
||||
Reference in New Issue
Block a user