diff --git a/resources/examples/project1/src/moduleAtRoot2.py b/resources/examples/project1/src/moduleAtRoot2.py index 880ba9d..eecb96c 100644 --- a/resources/examples/project1/src/moduleAtRoot2.py +++ b/resources/examples/project1/src/moduleAtRoot2.py @@ -38,6 +38,13 @@ class Student(Person): s = Student("Stolys", 19) s.printInfos() +# The parser should probably import the module before the root package. Here I want to check the symbol resolution of superclasses +from root import Animal + + +class Fish(Animal): + pass + class ClassWithTuples: cvarTuple1, cvarTuple2, cvarTuple3 = ("a", "b", "c") diff --git a/resources/examples/project1/src/root/__init__.py b/resources/examples/project1/src/root/__init__.py index 2dacfff..b13e4a5 100644 --- a/resources/examples/project1/src/root/__init__.py +++ b/resources/examples/project1/src/root/__init__.py @@ -3,3 +3,10 @@ def function_with_common_name(): return False + + +class Animal: + name = "" + + def eat(self): + print("I can eat") \ No newline at end of file