We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 170a989 commit 0811a32Copy full SHA for 0811a32
std/array.d
@@ -4094,14 +4094,15 @@ auto asStaticCast(U, alias arr)() @nogc
4094
asStaticCast!(byte, 2.iota).assertSame!byte([0, 1]);
4095
}
4096
4097
-version (unittest) void assertSame(T, T1, T2)(T1 a, T2 b) @nogc
+// 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
4099
{
4100
assert(is(T1 == T[T1.length]));
4101
assert(a == b);
4102
4103
4104
// TODO: add this to assertThrown in std.exception
-package(std) bool isThrown(T : Throwable = Exception, E)(lazy E expression) @system
4105
+bool isThrown(T : Throwable = Exception, E)(lazy E expression) @system
4106
4107
try
4108
0 commit comments