nitc: fix calling extern constructors from extern code in separate compiler
[nit.git] / tests / test_serialization_redef.nit
index d159cfd..286eca8 100644 (file)
@@ -1,19 +1,35 @@
+# This file is part of NIT ( http://www.nitlanguage.org ).
+#
+# Copyright 2014 Alexis Laferrière <alexis.laf@xymus.net>
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 import test_serialization
 
 redef class A
 #alt0# auto_serializable
 #alt2# auto_serializable
 
-       var iii = 6789
-       var sss = "redef"
+       var iii: Int = 6789
+       var sss: String = "redef"
 end
 
 redef class B
 #alt1# auto_serializable
 #alt2# auto_serializable
 
-       var ffff = 6.789
-       var bbbb = false
+       var ffff: Float = 6.789
+       var bbbb: Bool = false
 end
 
 super