nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version: v0.4.1-git
[nit.git]
/
tests
/
base_eq.nit
diff --git
a/tests/base_eq.nit
b/tests/base_eq.nit
index
b2db161
..
8c738bb
100644
(file)
--- a/
tests/base_eq.nit
+++ b/
tests/base_eq.nit
@@
-17,7
+17,7
@@
import kernel
class A
import kernel
class A
- readable attr _a: Int
+ readable var _a: Int
init(a: Int)
do
init(a: Int)
do
@@
-26,8
+26,8
@@
class A
end
class B
end
class B
-special A
- redef meth ==(a: Object): Bool
+ super A
+ redef fun ==(a: nullable Object): Bool
do
if not a isa B then
return false
do
if not a isa B then
return false
@@
-36,7
+36,7
@@
special A
return a.a is _a
end
return a.a is _a
end
- redef init(b: Int)
+ init(b: Int)
do
_a = b
end
do
_a = b
end