mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00

This implements the Enhanced Interpolated Expression Sequence proposal: i"" or iq{} or q`` with a $(expression) in the middle are converted to a tuple of druntime types for future processing by library code.
13 lines
564 B
D
13 lines
564 B
D
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/interpolatedexpressionsequence_postfix.d(10): Error: String postfixes on interpolated expression sequences are not allowed.
|
|
fail_compilation/interpolatedexpressionsequence_postfix.d(11): Error: String postfixes on interpolated expression sequences are not allowed.
|
|
fail_compilation/interpolatedexpressionsequence_postfix.d(12): Error: String postfixes on interpolated expression sequences are not allowed.
|
|
---
|
|
*/
|
|
void main() {
|
|
// all postfixes are banned
|
|
auto c = i"foo"c;
|
|
auto w = i"foo"w;
|
|
auto d = i"foo"d;
|
|
}
|