gcc/testsuite/gdc.test/compilable/imports/test9672a.d
raw| 1 | module imports.test9672a; // interpret |
| 2 | |
| 3 | import test9672; // node |
| 4 | |
| 5 | class Type |
| 6 | { |
| 7 | mixin ForwardCtor!(); |
| 8 | } |
| 9 | |
| 10 | //BasicType only created for standard types associated with tokens |
| 11 | class BasicType : Type |
| 12 | { |
| 13 | static Type createType() |
| 14 | { |
| 15 | return null; |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | class ValueT(T) |
| 20 | { |
| 21 | Type getType() |
| 22 | { |
| 23 | return BasicType.createType(); |
| 24 | } |
| 25 | } |
| 26 | class CharValue : ValueT!char |
| 27 | { |
| 28 | string toStr() |
| 29 | { |
| 30 | return null; |
| 31 | } |
| 32 | } |