mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00

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>
10 lines
323 B
D
10 lines
323 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/staticassertargsfail.d(10): Error: incompatible types for `('x') : (new Object)`: `char` and `object.Object`
|
|
fail_compilation/staticassertargsfail.d(10): while evaluating `static assert` argument `['x', new Object] ~ ""`
|
|
---
|
|
*/
|
|
|
|
|
|
static assert(0, "abc", ['x', new Object] ~ "");
|