mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00

* Fix Issue 23951 - traits(getMember) does not follow alias this * Fix Issue 23279 - ICE when using traits(hasMember) with an erroneous member
14 lines
241 B
D
14 lines
241 B
D
// https://issues.dlang.org/show_bug.cgi?id=23279
|
|
|
|
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test23279.d(13): Error: undefined identifier `Sth`
|
|
---
|
|
*/
|
|
|
|
class Tester
|
|
{
|
|
enum a = __traits(hasMember, Tester, "setIt");
|
|
void setIt(Sth sth){}
|
|
}
|