nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Revamp the C string to Nit string services to put forward the safest alternative
[nit.git]
/
tests
/
base_attr_nullable.nit
diff --git
a/tests/base_attr_nullable.nit
b/tests/base_attr_nullable.nit
index
1d0ddab
..
ae29324
100644
(file)
--- a/
tests/base_attr_nullable.nit
+++ b/
tests/base_attr_nullable.nit
@@
-18,7
+18,7
@@
import end
interface Object
end
interface Object
end
-
+enum Bool end
enum Int
fun output is intern
fun +(o: Int): Int is intern
enum Int
fun output is intern
fun +(o: Int): Int is intern
@@
-31,8
+31,8
@@
class Integer
end
class Foo
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)