Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / test_create_more.nit
index 4d1951f..e5a1ff1 100644 (file)
@@ -15,8 +15,8 @@
 # limitations under the License.
 
 class A
-       var _attribute: nullable A
-       var _num: Char
+       var attribute: nullable A is noinit
+       var num: Char is noinit
 
        fun foo=(a: nullable A)
        do
@@ -81,4 +81,4 @@ a[3] = new A.init2('3', a[2].bar('1'))
 a[2].bar('2') = new A
 a[4] = new A.init2('4', a[2].bar('1'))
 a[5] = new A.init2('5', a[2].bar('2'))
-printn(a)
+print a