Skip to content

Commit c01b44f

Browse files
committed
try fix docs
1 parent 3ed8995 commit c01b44f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/mir/exception.d

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ version (mir_test) unittest
3535
catch(Exception e) assert(e.msg == "Msg");
3636
}
3737

38-
static if (__traits(compiles, (()@nogc {throw new Exception("");})()))
38+
version(D_Ddoc)
39+
private enum _version_D_Ddoc = true;
40+
else
41+
private enum _version_D_Ddoc = false;
42+
43+
static if (_version_D_Ddoc || __traits(compiles, (()@nogc {throw new Exception("");})()))
3944
{
4045

4146
/++

0 commit comments

Comments
 (0)