Thread overview | |||||
---|---|---|---|---|---|
|
January 11, 2012 [dmd-internals] [D-Programming-Language/dmd] : Merge pull request #358 from yebblies/issue796 | ||||
---|---|---|---|---|
| ||||
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 |
January 11, 2012 [dmd-internals] [D-Programming-Language/dmd] : Merge pull request #358 from yebblies/issue796 | ||||
---|---|---|---|---|
| ||||
Posted in reply to GitHub | 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
|
January 11, 2012 [dmd-internals] [D-Programming-Language/dmd] : Merge pull request #358 from yebblies/issue796 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | 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
|
Copyright © 1999-2021 by the D Language Foundation