Skip to content

Commit

Permalink
Fix to make python test work
Browse files Browse the repository at this point in the history
  • Loading branch information
KuechA committed Sep 14, 2023
1 parent e286cb8 commit 2e97d1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ class PythonFrontendTest : BaseTest() {
assertEquals(4, recordFoo.fields.size)
assertEquals(1, recordFoo.methods.size)

// TODO: When developing the new python frontend, remove the type specifier from the field
// again and check if the field still occurs. It's absolutely not clear to me who would be
// responsible for adding it but IMHO it should be the frontend. This, however, is
// currently not the case.
val fieldX = recordFoo.fields["x"]
assertNotNull(fieldX)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Foo:
x
x: int
y = 123

def bar(self):
Expand Down

0 comments on commit 2e97d1f

Please sign in to comment.