scope: refuse `&x` where x is a local variable
[nit.git] / tests / test_deserialization.nit
index 2228810..c0f1045 100644 (file)
@@ -24,7 +24,7 @@ class A
        var c: Char
        var f: Float
        var i: Int
-       var s: String
+       var s: String is serialize_as "serialization_specific_name"
        var n: nullable Int
        var password = "p4ssw0rd" is lazy, noserialize
 
@@ -79,7 +79,7 @@ class F[N: Numeric]
 
        var n: N
 
-       redef fun to_s do return "<E: {n}>"
+       redef fun to_s do return "<F: {n}>"
 end
 
 # Other collections
@@ -125,5 +125,5 @@ class TestEntities
        var with_generics: Array[Serializable] = [a, b, c, d, e, fi, ff, g: Serializable]
 end
 
-# We instanciate it here so that `nitserial` detects generic types as being alive
+# We instantiate it here so that `nitserial` detects generic types as being alive
 var entities = new TestEntities