src/doc: introduce option --no-render in HTML phase.
[nit.git] / tests / base_attr4.nit
index 7511824..1b88711 100644 (file)
@@ -22,18 +22,24 @@ class A
 end
 
 class B
-special A
+       super A
        redef var foo: Int = 20
-       var bar: Int redef writable = 30
-       redef var baz: Int redef writable = 40
+       var bar: Int = 30 is redef writable
+       redef var baz: Int = 40 is redef writable
 end
 
 class C
-special B
+       super B
        redef fun foo: Int do return 100
-       redef fun bar=(i: Int) do i.output
+       redef fun bar=(i: Int) do
+               super
+               i.output
+       end
        redef fun baz: Int do return 400
-       redef fun baz=(i: Int) do i.output
+       redef fun baz=(i: Int) do
+               super
+               i.output
+       end
 end
 
 var a = new A