We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a8c8ca commit ba73649Copy full SHA for ba73649
py/dml/ctree.py
@@ -3733,6 +3733,8 @@ def read(self):
3733
+ '(_traitref_t) {_object_vtables[__id.id], __id};})')
3734
3735
def mkTraitUpcast(site, sub, parent):
3736
+ if isinstance(sub, NonValue):
3737
+ raise sub.exc()
3738
typ = safe_realtype(sub.ctype())
3739
assert dml.globals.object_trait
3740
if isinstance(typ, TTrait):
test/1.4/errors/T_ENVAL.dml
@@ -46,6 +46,9 @@ method init() {
46
b.r1;
47
/// ERROR ENVAL
48
b.r2.f;
49
+
50
+ /// ERROR ENVAL
51
+ cast([], t);
52
}
53
54
// dev is not a value in 1.4. Need to capture this with a rather unnatural
0 commit comments