mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Fix an error recovery goto issue, fixes davidhalter/jedi-vim#962
This commit is contained in:
@@ -37,6 +37,7 @@ foo = 10;print(foo)
|
||||
# classes
|
||||
# -----------------
|
||||
class C(object):
|
||||
x = 3
|
||||
def b(self):
|
||||
#! ['b = math']
|
||||
b
|
||||
@@ -44,8 +45,14 @@ class C(object):
|
||||
self.b
|
||||
#! 14 ['def b']
|
||||
self.b()
|
||||
#! 14 ['def b']
|
||||
self.b.
|
||||
#! 11 ['param self']
|
||||
self.b
|
||||
#! ['x = 3']
|
||||
self.x
|
||||
#! 14 ['x = 3']
|
||||
self.x.
|
||||
return 1
|
||||
|
||||
#! ['def b']
|
||||
|
||||
Reference in New Issue
Block a user