[Issue 796] Asserting a null object reference throws AssertError	Failure internal\invariant.d(14) or Access Violation
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Jan 11 07:04:40 PST 2007
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=796
smjg at iname.com changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com
           Keywords|                            |diagnostic
            Summary|Error: AssertError Failure  |Asserting a null object
                   |internal\invariant.d(14)    |reference throws AssertError
                   |                            |Failure
                   |                            |internal\invariant.d(14) or
                   |                            |Access Violation
------- Comment #4 from smjg at iname.com  2007-01-11 09:04 -------
Indeed,
    assert(classref)
should be translated inline to
    assert((classref !is null) && _d_invariant(classref));
so that the error location is preserved.
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list