mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Allow multiple message arguments for static assert (#14611)
Allow multiple message arguments for static assert Signed-off-by: Razvan Nitu <razvan.nitu1305@gmail.com> Merged-on-behalf-of: Razvan Nitu <razvan.nitu1305@gmail.com>
This commit is contained in:
parent
5f2761d146
commit
8cc27077c5
11 changed files with 100 additions and 32 deletions
9
compiler/test/fail_compilation/staticassertargs.d
Normal file
9
compiler/test/fail_compilation/staticassertargs.d
Normal file
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
TEST_OUTPUT:
|
||||
---
|
||||
fail_compilation/staticassertargs.d(9): Error: static assert: abcxe3!!
|
||||
---
|
||||
*/
|
||||
|
||||
enum e = "!!";
|
||||
static assert(false, "abc", ['x', 'e'], 3, e);
|
Loading…
Add table
Add a link
Reference in a new issue