mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 06:30:28 +03:00
Fix issue 15320
This commit is contained in:
parent
f5ce17346d
commit
eb293b5063
11 changed files with 1038 additions and 1043 deletions
|
@ -377,7 +377,7 @@ unittest
|
|||
import std.typecons;
|
||||
static assert(!__traits(compiles, [ tuple("foo", "bar", "baz") ].assocArray()));
|
||||
static assert(!__traits(compiles, [ tuple("foo") ].assocArray()));
|
||||
static assert( __traits(compiles, [ tuple("foo", "bar") ].assocArray()));
|
||||
[ tuple("foo", "bar") ].assocArray();
|
||||
}
|
||||
|
||||
// Issue 13909
|
||||
|
@ -386,7 +386,7 @@ unittest
|
|||
import std.typecons;
|
||||
auto a = [tuple!(const string, string)("foo", "bar")];
|
||||
auto b = [tuple!(string, const string)("foo", "bar")];
|
||||
static assert( __traits(compiles, assocArray(a)));
|
||||
assocArray(a);
|
||||
static assert(!__traits(compiles, assocArray(b)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue