diff options
Diffstat (limited to 'resolve')
-rw-r--r-- | resolve/testdata/resolve.sky | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/resolve/testdata/resolve.sky b/resolve/testdata/resolve.sky index c48af1c..f8c4c9a 100644 --- a/resolve/testdata/resolve.sky +++ b/resolve/testdata/resolve.sky @@ -120,6 +120,7 @@ def f(): f() --- +load("module", "name") # ok def f(): load("foo", "bar") ### "load statement within a function" @@ -132,24 +133,6 @@ load("foo", _e="f") # ok --- -# A load() call as an expression statement is converted into a -# load statement, but load is not currently a reserved word. -# TODO(adonovan): clarify the Skylark spec on this issue. - -def load(): # doesn't affect following call - pass - -_ = 1 + load() # ok - -load("foo.sky", "") ### "load: empty identifier" - ---- - -def f(load): - _ = (load, load()) # ok - load("foo.sky", "x") ### "load statement within a function" - ---- # return, if statements and for loops at top-level are forbidden for x in "abc": ### "for loop not within a function" |