gcc/testsuite/gdc.test/compilable/defa.d
raw| 1 | // PERMUTE_ARGS: |
| 2 | // EXTRA_FILES: imports/defaa.d imports/defab.d imports/defac.d imports/defad.d |
| 3 | module defa; |
| 4 | |
| 5 | private import imports.defaa; |
| 6 | |
| 7 | public abstract class A |
| 8 | { |
| 9 | Display d; |
| 10 | int style; |
| 11 | |
| 12 | this() {} |
| 13 | |
| 14 | public this(A parent, int style) |
| 15 | { |
| 16 | this.style = style; |
| 17 | d = parent.d; |
| 18 | } |
| 19 | } |