1 2 3 // REQUIRED_ARGS: -de 4 /* 5 TEST_OUTPUT: 6 --- 7 fail_compilation/ice11822.d(32): Deprecation: function ice11822.d is deprecated 8 fail_compilation/ice11822.d(21): instantiated from here: S!(__lambda1) 9 fail_compilation/ice11822.d(32): instantiated from here: g!((n) => d(i)) 10 --- 11 */ 12 S(alias pred)13struct S(alias pred) 14 { 15 this(int) { pred(1); } 16 void f() { pred(2); } 17 } 18 g(alias pred)19auto g(alias pred)() 20 { 21 return S!pred(3); 22 } 23 d(int)24deprecated bool d(int) 25 { 26 return true; 27 } 28 h()29auto h() 30 { 31 int i; 32 return g!(n => d(i))(); 33 } 34