| 1 |
// REQUIRED_ARGS: -m32 |
| 2 |
/* |
| 3 |
TEST_OUTPUT: |
| 4 |
--- |
| 5 |
fail_compilation/fail80_m32.d(28): Error: cannot implicitly convert expression `"progress_rem"` of type `string` to `uint` |
| 6 |
fail_compilation/fail80_m32.d(29): Error: cannot implicitly convert expression `"redo"` of type `string` to `uint` |
| 7 |
--- |
| 8 |
*/ |
| 9 |
|
| 10 |
module paintshop; |
| 11 |
|
| 12 |
class Image{} |
| 13 |
|
| 14 |
class ResourceManager |
| 15 |
{ |
| 16 |
Image getImage(char[] name) { return null; } |
| 17 |
} |
| 18 |
|
| 19 |
class Test |
| 20 |
{ |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
static Image[] images; |
| 25 |
|
| 26 |
static void initIcons() |
| 27 |
{ |
| 28 |
images["progress_rem"] = ResourceManager.getImage("progress_rem.gif"); // delete_obj_dis |
| 29 |
images["redo"] = ResourceManager.getImage("redo.gif"); |
| 30 |
} |
| 31 |
} |