Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out contracts cause an assertion failure #3

Open
belka-ew opened this issue Feb 13, 2018 · 0 comments
Open

out contracts cause an assertion failure #3

belka-ew opened this issue Feb 13, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@belka-ew
Copy link
Contributor

belka-ew commented Feb 13, 2018

class A
{
    void* func()
    out (result)
    {
        assert(result !is null);
    }
    body
    {
        return cast(void*) 1;
    }
}

auto mocker = new Mocker;
auto a = mocker.mock!A;

mocker.expect(a.func());
mocker.replay;

a.func();

mocker.verify;
@belka-ew belka-ew added the bug Something isn't working label Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant