Skip to content

Commit 54e4281

Browse files
committed
Calling getAttributes on an overload set has been deprecated
1 parent e9479a4 commit 54e4281

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: dstep/Configuration.d

+3
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ template makeGetOptArgs(alias config)
165165

166166
static if (
167167
__traits(compiles, &__traits(getMember, config, spelling)) &&
168+
// member might be a possibly overloaded function
169+
// calling getAttributes on an overload set has been deprecated
170+
!is(typeof(member) == return) &&
168171
__traits(getAttributes, member).length == 2)
169172
{
170173
auto ptr() @property

0 commit comments

Comments
 (0)