Make sure we use the right context in case of goto with decorators, fixes #1427
This commit is contained in:
1 parent
b8a1f6da55
commit
4ba3dc69b3
3 files changed
+15
-2
No files matched your search
@@ -330,3 +330,16 @@ import abc
|
||||
|
||||
#? ['abstractmethod']
|
||||
@abc.abstractmethod
|
||||
|
||||
# -----------------
|
||||
# Goto
|
||||
# -----------------
|
||||
x = 1
|
||||
|
||||
#! 5 []
|
||||
@x.foo()
|
||||
def f(): pass
|
||||
|
||||
#! 1 ['x = 1']
|
||||
@x.foo()
|
||||
def f(): pass
|
||||
Reference in new issue
Block a user