nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Contract refactoring
[nit.git]
/
tests
/
base_virtual_type3.nit
diff --git
a/tests/base_virtual_type3.nit
b/tests/base_virtual_type3.nit
index
f66f1fa
..
b05b4e8
100644
(file)
--- a/
tests/base_virtual_type3.nit
+++ b/
tests/base_virtual_type3.nit
@@
-14,15
+14,15
@@
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
-import base_virtual_type2
import array
import array
+import base_virtual_type2
class C
class C
-special A
- readable writable attr _tab: nullable Array[E]
- init do end
+ super A
+ var tab: nullable Array[E] = null is writable
end
end
+
var c = new C
c.tab = new Array[T]
c.tab.add(new U)
var c = new C
c.tab = new Array[T]
c.tab.add(new U)