nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modelize_property: remove old-style accesors
[nit.git]
/
tests
/
base_attr_isset.nit
diff --git
a/tests/base_attr_isset.nit
b/tests/base_attr_isset.nit
index
bc5ab98
..
f3a1178
100644
(file)
--- a/
tests/base_attr_isset.nit
+++ b/
tests/base_attr_isset.nit
@@
-29,18
+29,18
@@
enum Bool
end
class Integer
end
class Integer
- readable writable var _val: Int
+ var _val: Int
init(val: Int) do _val = val
fun output do _val.output
end
class Foo
var _a1: Integer
init(val: Int) do _val = val
fun output do _val.output
end
class Foo
var _a1: Integer
- readable var _a2: Integer
+ var _a2: Integer
fun run
do
_a1.output
fun run
do
_a1.output
- a2.output
+ _a2.output
end
fun show(i: Int)
end
fun show(i: Int)
@@
-55,7
+55,7
@@
class Foo
show(1)
_a1 = new Integer(1)
show(2)
show(1)
_a1 = new Integer(1)
show(2)
- _a2 = new Integer(_a1.val + 1) #!alt3# #!alt4#
+ _a2 = new Integer(_a1._val + 1) #alt3# #alt4#
show(3)
end
#alt3#
show(3)
end
#alt3#
@@
-64,7
+64,7
@@
end
class Bar
super Foo
class Bar
super Foo
- var _a3: Integer#!alt1# #!alt2#
+ var _a3: Integer#alt1# #alt2#
#alt1#var _a3: Integer = new Integer(9000)
#alt2#var _a3: nullable Integer
redef fun run
#alt1#var _a3: Integer = new Integer(9000)
#alt2#var _a3: nullable Integer
redef fun run