| 1 |
// PERMUTE_ARGS: |
| 2 |
// EXTRA_FILES: imports/imp12242a.d imports/imp12242a1.d imports/imp12242a2.d imports/imp12242b.d imports/imp12242b1.d imports/imp12242b2.d |
| 3 |
module testimport12242; |
| 4 |
|
| 5 |
import imports.imp12242a; // test // stripA == OverloadSet |
| 6 |
import imports.imp12242a1; // std.string // stripA == template |
| 7 |
|
| 8 |
import imports.imp12242b1; // std.string // stripB == template |
| 9 |
import imports.imp12242b; // test // stripB == OverloadSet |
| 10 |
|
| 11 |
void main() |
| 12 |
{ |
| 13 |
static assert(stripA(" af ") == 1); |
| 14 |
static assert(" af ".stripA() == 1); // UFCS (1) |
| 15 |
static assert(" af ".stripA == 1); // UFCS (2) |
| 16 |
|
| 17 |
static assert(stripB(" af ") == 1); |
| 18 |
static assert(" af ".stripB() == 1); // UFCS (1) |
| 19 |
static assert(" af ".stripB == 1); // UFCS (2) |
| 20 |
|
| 21 |
|
| 22 |
static assert(foo!int == 1); |
| 23 |
static assert(foo!long == 2); |
| 24 |
static assert(foo!float == 3); |
| 25 |
static assert(foo!real == 4); |
| 26 |
} |