[dmd-internals] [D-Programming-Language/dmd] : Merge pull request #358 from yebblies/issue796
Alex
xtzgzorex at gmail.com
Wed Jan 11 11:26:02 PST 2012
Yep:
class A
{
/*
* Works with and without invariant.
invariant()
{
}
*/
}
void main()
{
A a;
assert(a); // Throws AssertError as expected now.
}
Thanks for the fix!
On Wed, Jan 11, 2012 at 8:10 PM, Andrei Alexandrescu <andrei at erdani.com> wrote:
> Does this work for classes too?
>
> Andrei
>
>
> On 1/11/12 1:06 PM, GitHub wrote:
>>
>> Branch: refs/heads/master
>> Home: https://github.com/D-Programming-Language/dmd
>> Commit: 7d942b84fd09f0a63105f6a92cd744f8b86e6021
>>
>> https://github.com/D-Programming-Language/dmd/commit/7d942b84fd09f0a63105f6a92cd744f8b86e6021
>> Author: Walter Bright<walter at walterbright.com>
>> Date: 2012-01-11 (Wed, 11 Jan 2012)
>>
>> Changed paths:
>> M src/e2ir.c
>> M test/runnable/xtest46.d
>>
>> Log Message:
>> -----------
>> Merge pull request #358 from yebblies/issue796
>>
>> Issue 796 - Asserting a null object reference throws AssertError Failure
>> internal\invariant.d(14) or Access Violation
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> dmd-internals mailing list
>> dmd-internals at puremagic.com
>> http://lists.puremagic.com/mailman/listinfo/dmd-internals
>
> _______________________________________________
> dmd-internals mailing list
> dmd-internals at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-internals
More information about the dmd-internals
mailing list