Thread overview
[Issue 10925] unittests qualified on the right hand side fail
Mar 22, 2015
Stefan Frijters
Mar 22, 2015
Kenji Hara
Mar 24, 2015
Kenji Hara
Mar 27, 2015
Walter Bright
Dec 17, 2022
Iain Buclaw
March 22, 2015
https://issues.dlang.org/show_bug.cgi?id=10925

Stefan Frijters <sfrijters@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sfrijters@gmail.com

--- Comment #1 from Stefan Frijters <sfrijters@gmail.com> ---
I have also run into this issue today and would rather like to see it fixed / allowed, for the same reasons given by monarchdodra.

--
March 22, 2015
https://issues.dlang.org/show_bug.cgi?id=10925

--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> ---
Historically invariant block needed parenthesis until 2.065.

class C {
    invariant {}    // Error until 2.065, allowed from 2.066
}

And "postfix attributes" is valid only for functions.

class C {
    void fun() pure { ... }    // OK
    int function() fptr pure;  // NG
}

If we allow postfix attributes on unittest and invariant blocks, I'd like to force the empty parameter list `()` to make the syntax similar to functions.

class C {
    unittest() pure { ... }    // proposal
    invariant() pure nothrow { ... }
}

--
March 24, 2015
https://issues.dlang.org/show_bug.cgi?id=10925

Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> ---
https://github.com/D-Programming-Language/dmd/pull/4514

--
March 27, 2015
https://issues.dlang.org/show_bug.cgi?id=10925

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com
           Severity|normal                      |enhancement

--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> ---
This is an enhancement request, not a bug.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=10925

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

--