mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 06:00:35 +03:00
Merge pull request #1329 from 9rnsr/fix10220
[REG2.064a] Issue 10220 - `array` doesn't work with disabled default construction
This commit is contained in:
commit
7b0a1219fd
8 changed files with 89 additions and 58 deletions
|
@ -1197,3 +1197,10 @@ unittest
|
|||
static assert(!__traits(compiles, 1.ifThrown(e=>new Object())));
|
||||
static assert(!__traits(compiles, (new Object()).ifThrown(e=>1)));
|
||||
}
|
||||
|
||||
version(unittest) package
|
||||
@property void assertCTFEable(alias dg)()
|
||||
{
|
||||
static assert({ dg(); return true; }());
|
||||
dg();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue