Skip to content

Commit

Permalink
add test for interface import recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Oct 14, 2024
1 parent 13c659b commit 7669129
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/functional/syntax/test_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,13 +381,22 @@ def test_interfaces_success(good_code):


def test_imports_and_implements_within_interface(make_input_bundle):
interface_code = """
ibar_code = """
@external
def foobar():
...
"""
ifoo_code = """
import bar
input_bundle = make_input_bundle({"foo.vyi": interface_code})
implements: bar
@external
def foobar():
...
"""

input_bundle = make_input_bundle({"foo.vyi": ifoo_code, "bar.vyi": ibar_code})

code = """
import foo as Foo
Expand Down

0 comments on commit 7669129

Please sign in to comment.