gcc/testsuite/gdc.test/compilable/mixintempl.d
raw| 1 | |
| 2 | struct TypeObj |
| 3 | { |
| 4 | alias This = typeof(this); |
| 5 | |
| 6 | mixin template MixinTempl() |
| 7 | { |
| 8 | int value; |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | ref TypeObj Obj() |
| 13 | { |
| 14 | static TypeObj a; |
| 15 | return a; |
| 16 | } |
| 17 | |
| 18 | void func() |
| 19 | { |
| 20 | mixin Obj.This.MixinTempl; // ok |
| 21 | mixin Obj.MixinTempl; // fixed: "MixinTempl!()" is not defined |
| 22 | } |