import kernel
-var x: Int
+var x = 0
while x == 0 do x = 2
while x == 0 do
x = 2
end
end
-var a: A
+var a: A = null
a.bar.output
a.foo
-Aborted: ./base_abort.nit:21,2--6
+Aborted in base_abort::Object::foo (./base_abort.nit:21)
,---- Stack trace -- - - -
-| base_abort::Object::foo (./base_abort.nit:19,1--21:6)
-| base_abort::Sys::main (./base_abort.nit:24,1--3)
+| base_abort::Object::foo (./base_abort.nit:19)
+| base_abort::Sys::(kernel::Sys::main) (./base_abort.nit:24)
`------------------- - - -
alt/base_init_linext2_alt4.nit:103,3--7: Error: Constructor of B must be invoked before constructor of C
-alt/base_init_linext2_alt4.nit:97,2--111:12: Error: Conflicting default constructor to call for B: initb, init_par, init_par2.
+alt/base_init_linext2_alt4.nit:97,2--111:12: Error: Conflicting default constructor to call for B: initb, init_par.
-Assert failed: alt/base_isa_cast_alt6.nit:58,1--14
+Assert failed in base_isa_cast_alt6::Sys::(kernel::Sys::main) (alt/base_isa_cast_alt6.nit:58)
,---- Stack trace -- - - -
-| base_isa_cast_alt6::Sys::main (alt/base_isa_cast_alt6.nit:35,1--59:5)
+| base_isa_cast_alt6::Sys::(kernel::Sys::main) (alt/base_isa_cast_alt6.nit:35)
`------------------- - - -
-./error_attr_2def.nit:19,2--19: Error: A property _toto is already defined in class A at line 18.
+./error_attr_2def.nit:19,2--19: Error: A property _toto is already defined in class A.
-alt/error_defs_alt2.nit:26,2--40: Error: A property foo is already defined in class A at line 25.
+alt/error_defs_alt2.nit:26,2--40: Error: A property foo is already defined in class A.
-./error_meth_2def.nit:19,2--18: Error: A property toto is already defined in class A at line 18.
+./error_meth_2def.nit:19,2--18: Error: A property toto is already defined in class A.
-./error_meth_2def2.nit:19,2--35: Error: A property toto is already defined in class A at line 18.
+./error_meth_2def2.nit:19,2--35: Error: A property toto is already defined in class A.
--- /dev/null
+Assert 'fail' failed in rterror_check::Sys::(kernel::Sys::main) (./rterror_check.nit:20)
+,---- Stack trace -- - - -
+| rterror_check::Sys::(kernel::Sys::main) (./rterror_check.nit:18)
+`------------------- - - -
attr _t: Int
attr _k: Int
-
init(q: Int, r: Int, s: Int, t: Int)
+ do
+ set(q, r, s, t)
+ end
+
+ meth set(q: Int, r: Int, s: Int, t: Int)
do
_q = q
_r = r
meth qrst(q: Int, r: Int, s: Int, t: Int): Transformation
do
- init(q, r, s, t)
+ set(q, r, s, t)
return self
end
end
end
var a = new A
-var b : A
+var b: A = null
if a == null then printn(0) else printn(1)
if a is null then printn(0) else printn(1)
#if b == null then printn(1) else printn(0)
# See the License for the specific language governing permissions and
# limitations under the License.
-var i: Int
+var i = 0
var j: Object = i
var k: Object
# limitations under the License.
-var a: Object
-var b: Object
-var c= a
-var d= "coucou"
+var a: Object = null
+var b: Object = null
+var c = a
+var d = "coucou"
d = null
printn(0)
printn(null)
end
end
-var a: A
+var a: A = null
if a != null then
a.foo
a.bar.output
else
echo "[=== no sav ===] $ff.res"
echo -n "<a href=\"$ff.res\">res</a>" >> $HTM
+ nos="$nos $ff"
fi
echo "</td>" >> $HTM
done
done
-echo "ok: " `echo $ok | wc -w` "/ $#"
+echo "ok: " `echo $ok | wc -w` "/" `echo $ok $nok $nos | wc -w`
echo "<td>" `echo $ok | wc -w` "</td><td>" `echo $nok | wc -w` "</td></tr>" >> $HTM
if [ -n "$nok" ]; then
echo "fail: $nok"
echo "There were errors !"
fi
+if [ -n "$nos" ]; then
+ echo "no sav: $nos"
+fi