mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-30 23:27:39 +00:00
24 lines
264 B
Python
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.
|
|
{=}
|
|
{:}
|