forked from M-Labs/artiq
1
0
Fork 0

Revert wrong parts of 6bd16e44.

This commit is contained in:
whitequark 2016-02-27 13:15:49 +00:00
parent 313a696a54
commit 63e0c7c07c
1 changed files with 1 additions and 1 deletions

View File

@ -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