Enhance: empty classes can be generated by Class()

This commit is contained in:
Shunsuke Shibayama 2022-12-23 22:16:22 +09:00
parent 5b0dedd421
commit d8f7e386c8
12 changed files with 127 additions and 78 deletions

View file

@ -1,3 +1,7 @@
Empty = Class()
empty = Empty.new()
print! empty
# Inheritance is prohibited by default. Remove this decorator and check for errors.
@Inheritable
Point2D = Class {x = Int; y = Int}