nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Test result update for `curl_http`
[nit.git]
/
tests
/
base_attr_nullable_int.nit
diff --git
a/tests/base_attr_nullable_int.nit
b/tests/base_attr_nullable_int.nit
index
e1de585
..
03c7d88
100644
(file)
--- a/
tests/base_attr_nullable_int.nit
+++ b/
tests/base_attr_nullable_int.nit
@@
-18,19
+18,19
@@
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 Foo
enum Int
fun output is intern
fun +(o: Int): Int is intern
end
class Foo
- var _a1: Int
- readable var _a2: Int
+ var a1: Int is noinit
+ var a2: Int is noinit
fun run
do
_a1.output
fun run
do
_a1.output
- a2.output
+ _a2.output
end
fun run_other(o: Foo)
end
fun run_other(o: Foo)
@@
-51,8
+51,8
@@
class Foo
end
class Bar
end
class Bar
-special Foo
- var _a3: Int
+ super Foo
+ var a3: Int is noinit
redef fun run
do
_a1.output
redef fun run
do
_a1.output
@@
-62,7
+62,7
@@
special Foo
init
do
init
do
- nop
+ if false then super # no auto super init call
#alt3#run
_a1 = 10
#alt4#run_other(self)
#alt3#run
_a1 = 10
#alt4#run_other(self)