Fix param position lookups. Also forward annotations have the correct resolution path now (starting at the end of the file).
This commit is contained in:
1 parent
ac294244cf
commit
936cef97e9
4 files changed
+28
-4
No files matched your search
@@ -178,6 +178,23 @@ nested_default(a=1.0)[1]
|
||||
#? str()
|
||||
nested_default(a=1.0, b='')[1]
|
||||
|
||||
# Defaults should only work if they are defined before - not after.
|
||||
def default_function(a=default):
|
||||
#?
|
||||
return a
|
||||
|
||||
#?
|
||||
default_function()
|
||||
|
||||
default = int()
|
||||
|
||||
def default_function(a=default):
|
||||
#? int()
|
||||
return a
|
||||
|
||||
#? int()
|
||||
default_function()
|
||||
|
||||
|
||||
# -----------------
|
||||
# closures
|
||||
|
||||
Reference in new issue
Block a user