1 /* 2 TEST_OUTPUT: 3 --- 4 fail_compilation/fail10082.d(24): Error: cannot infer type from overloaded function symbol &foo 5 --- 6 */ 7 T()8mixin template T() 9 { 10 int foo() 11 { 12 return 0; 13 } 14 } 15 16 class A 17 { 18 mixin T; 19 mixin T; 20 } 21 main()22void main() 23 { 24 auto x = &A.foo; 25 } 26