We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f7dbde commit abdb697Copy full SHA for abdb697
tests/errors/structs_02.py
@@ -0,0 +1,11 @@
1
+from lpython import i32, dataclass
2
+
3
+@dataclass
4
+class S:
5
+ x: i32
6
7
+def main0():
8
+ s: S
9
+ s.x = 2
10
11
+main0()
tests/tests.toml
@@ -638,6 +638,10 @@ asr = true
638
filename = "errors/structs_01.py"
639
asr = true
640
641
+[[test]]
642
+filename = "errors/structs_02.py"
643
+asr = true
644
645
[[test]]
646
filename = "errors/const_01.py"
647
0 commit comments