nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Update xymus.net to activate the full API for the mobile client
[nit.git]
/
tests
/
base_attr_nullable.nit
diff --git
a/tests/base_attr_nullable.nit
b/tests/base_attr_nullable.nit
index
08ad503
..
ae29324
100644
(file)
--- a/
tests/base_attr_nullable.nit
+++ b/
tests/base_attr_nullable.nit
@@
-18,21
+18,21
@@
import end
interface Object
end
interface Object
end
-
+enum Bool end
enum Int
fun output is intern
fun +(o: Int): Int is intern
end
class Integer
enum Int
fun output is intern
fun +(o: Int): Int is intern
end
class Integer
- var _val: Int
+ var val: Int
init(val: Int) do _val = val
fun output do _val.output
end
class Foo
init(val: Int) do _val = val
fun output do _val.output
end
class Foo
- var _a1: Integer
- var _a2: Integer
+ var a1: Integer is noinit
+ var a2: Integer is noinit
fun run
do
_a1.output
fun run
do
_a1.output
@@
-58,7
+58,7
@@
end
class Bar
super Foo
class Bar
super Foo
- var _a3: Integer
+ var a3: Integer is noinit
redef fun run
do
_a1.output
redef fun run
do
_a1.output
@@
-68,7
+68,7
@@
class Bar
init
do
init
do
- nop
+ if false then super # no auto super init call
#alt3#run
_a1 = new Integer(10)
#alt4#run_other(self)
#alt3#run
_a1 = new Integer(10)
#alt4#run_other(self)