Signed-off-by: Jean Privat <jean@pryen.org>
show(1)
_a1 = new Integer(1)
show(2)
- _a2 = new Integer(_a1.val + 1)
+ _a2 = new Integer(_a1.val + 1) #!alt3# #!alt4#
show(3)
end
-
+ #alt3#
init nop do end
end
end
end
+class Baz
+special Foo
+end
+
+#alt4# var b2 = new Baz
var f = new Foo
var b = new Bar
f.run
--- /dev/null
+1
+false
+false
+2
+true
+false
+3
+true
+false
+Uninitialized attribute base_attr_isset_alt3::Foo::_a2 at base_attr_isset_alt3::Foo::init for Foo.
+,---- Stack trace -- - - -
+| base_attr_isset_alt3::Sys::main (alt/base_attr_isset_alt3.nit:100)
+`------------------- - - -
--- /dev/null
+1
+false
+false
+2
+true
+false
+3
+true
+false
+Uninitialized attribute base_attr_isset_alt4::Foo::_a2 at base_attr_isset_alt4::Foo::init for Baz.
+,---- Stack trace -- - - -
+| base_attr_isset_alt4::Sys::main (alt/base_attr_isset_alt4.nit:99)
+`------------------- - - -