erg/crates/erg_parser/tests/invalid_class_definition.er
2023-05-04 12:10:26 +09:00

24 lines
264 B
Python

Pub = Class()
Pub.
indent = "indent is needed"
Pub.
{a: 1} # invalid attribute
Pub.
a = 1
{x = 1; y = 2}
b = 2
Pri = Class()
Priv.
indent = "indent is needed"
Pri::
{1, 2} # invalid attribute
Indent.
[]
Indent.
{=}
{:}