scope: refuse `&x` where x is a local variable
[nit.git] / tests / base_virtual_type3.nit
index c2794fe..b05b4e8 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-import base_virtual_type2
 import array
+import base_virtual_type2
 
 class C
        super A
-       readable writable var _tab: nullable Array[E]
-       init do end
+       var tab: nullable Array[E] = null is writable
 end
 
+
 var c = new C
 c.tab = new Array[T]
 c.tab.add(new U)