dmd/compiler/test/fail_compilation/staticassertargsfail.d
Nick Treleaven 8cc27077c5
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>
2022-12-19 15:06:48 +01:00

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] ~ "");