34da2d6a456f1f803b6427cbd419f2dd82af1537
[nit.git] / tests / sav / nitg-e / test_serialization_alt2.res
1 alt/test_serialization_alt2.nit:22,1--47,3: Warning: superfluous use of `serialize`.
2 alt/test_serialization_alt2.nit:70,1--86,3: Warning: superfluous use of `auto_serializable`.
3 alt/test_serialization_alt2.nit:88,1--96,3: Warning: superfluous use of `auto_serializable`.
4 # Nit:
5 <A: true a 0.123 1234 asdf false>
6
7 # Json:
8 {"__kind": "obj", "__id": 0, "__class": "A", "b": true, "f": 0.123, "i": 1234, "s": "asdf", "n": null, "array": {"__kind": "obj", "__id": 1, "__class": "Array", "__length": 3, "__items": [88, "hello", null]}}
9
10 # Nit:
11 <B: <A: false b 123.123 2345 hjkl false> 1111 qwer>
12
13 # Json:
14 {"__kind": "obj", "__id": 0, "__class": "B", "b": false, "f": 123.123, "i": 2345, "s": "hjkl", "n": null, "array": {"__kind": "obj", "__id": 1, "__class": "Array", "__length": 3, "__items": [88, "hello", null]}}
15
16 # Nit:
17 <C: <A: true a 0.123 1234 asdf false> <B: <A: false b 123.123 2345 hjkl false> 1111 qwer>>
18
19 # Json:
20 {"__kind": "obj", "__id": 0, "__class": "C", "a": {"__kind": "obj", "__id": 1, "__class": "A", "b": true, "f": 0.123, "i": 1234, "s": "asdf", "n": null, "array": {"__kind": "obj", "__id": 2, "__class": "Array", "__length": 3, "__items": [88, "hello", null]}}, "b": {"__kind": "obj", "__id": 3, "__class": "B", "b": false, "f": 123.123, "i": 2345, "s": "hjkl", "n": null, "array": {"__kind": "obj", "__id": 4, "__class": "Array", "__length": 3, "__items": [88, "hello", null]}}, "aa": {"__kind": "ref", "__id": 1}}
21
22 # Nit:
23 <D: <B: <A: false b 123.123 2345 new line ->
24 <- false> 1111  f"\r\/> true>
25
26 # Json:
27 {"__kind": "obj", "__id": 0, "__class": "D", "b": false, "f": 123.123, "i": 2345, "s": "new line ->\n<-", "n": null, "array": {"__kind": "obj", "__id": 1, "__class": "Array", "__length": 3, "__items": [88, "hello", null]}, "d": {"__kind": "ref", "__id": 0}}
28