mirror of https://github.com/m-labs/artiq.git
Revert wrong parts of 6bd16e44
.
This commit is contained in:
parent
313a696a54
commit
63e0c7c07c
|
@ -11,7 +11,7 @@ class contextmgr:
|
|||
def foo():
|
||||
contextmgr.__enter__(1)
|
||||
# CHECK-L: ${LINE:+3}: error: cannot unify <instance contextmgr> with int(width='a) while inferring the type for self argument
|
||||
# CHECK-L: ${LINE:+2}: note: expression of type <instance contextmgr>
|
||||
# CHECK-L: ${LINE:+2}: note: expression of type <instance contextmgr {}>
|
||||
# CHECK-L: ${LINE:+1}: note: reference to an instance with a method '__enter__(self:int(width='a))->NoneType delay('b)'
|
||||
with contextmgr():
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue