Merge: example: add 24 game task of Rosetta code
[nit.git] / examples / calculator / src / calculator_logic.nit
index 57d3b5a..ea45a99 100644 (file)
 # Business logic of a calculator
 module calculator_logic
 
+import serialization
+
 # Hold the state of the calculator and its services
 class CalculatorContext
+       auto_serializable
+
        # Result of the last operation
        var result: nullable Numeric = null