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:
Nick Treleaven 2022-12-19 14:06:48 +00:00 committed by GitHub
parent 5f2761d146
commit 8cc27077c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 100 additions and 32 deletions

View 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);