nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: add base_attr_annot.nit
[nit.git]
/
tests
/
base_virtual_type2.nit
diff --git
a/tests/base_virtual_type2.nit
b/tests/base_virtual_type2.nit
index
e20f497
..
5f86a26
100644
(file)
--- a/
tests/base_virtual_type2.nit
+++ b/
tests/base_virtual_type2.nit
@@
-19,28
+19,28
@@
import kernel
class A
type E: T
class A
type E: T
- readable writable attr _e: E = null
+ var e: nullable E = null is writable
end
class B
end
class B
-special A
+ super A
init do end
end
class T
init do end
end
class T
- meth foo do 0.output
+ fun foo do 0.output
init do end
end
class U
init do end
end
class U
-special T
- redef meth foo do 1.output
+ super T
+ redef fun foo do 1.output
init do end
end
var b = new B
init do end
end
var b = new B
-var t: T
-var u = new U
+var t: nullable T
+var u: nullable U = new U
b.e = u
#alt1#u = b.e
b.e = u
#alt1#u = b.e