6862bbd
2021-10-13
What program did you run?
# lookup_self_field_neg.py
# This should fail.
class C:
pass
def f(c: C):
# reveal_type(c.x) # dynamic
return c.x
What happened?
The program passes type checks.
What should have happened?
We expected a compile-time error complaining that "C has no attribute x". (This is what mypy does.)
Is this another case where Static Python falls back to dynamic (similar to #50)?
6862bbd
2021-10-13
What program did you run?
What happened?
The program passes type checks.
What should have happened?
We expected a compile-time error complaining that "
Chas no attributex". (This is what mypy does.)Is this another case where Static Python falls back to dynamic (similar to #50)?