Skip to content

Commit 0811a32

Browse files
committed
fixup
1 parent 170a989 commit 0811a32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

std/array.d

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4094,14 +4094,15 @@ auto asStaticCast(U, alias arr)() @nogc
40944094
asStaticCast!(byte, 2.iota).assertSame!byte([0, 1]);
40954095
}
40964096

4097-
version (unittest) void assertSame(T, T1, T2)(T1 a, T2 b) @nogc
4097+
// Note: can't use `version (unittest)` because of https://issues.dlang.org/show_bug.cgi?id=18488
4098+
void assertSame(T, T1, T2)(T1 a, T2 b) @nogc
40984099
{
40994100
assert(is(T1 == T[T1.length]));
41004101
assert(a == b);
41014102
}
41024103

41034104
// TODO: add this to assertThrown in std.exception
4104-
package(std) bool isThrown(T : Throwable = Exception, E)(lazy E expression) @system
4105+
bool isThrown(T : Throwable = Exception, E)(lazy E expression) @system
41054106
{
41064107
try
41074108
{

0 commit comments

Comments
 (0)