1 // https://issues.dlang.org/show_bug.cgi?id=21025
2 // REQUIRED_ARGS: -preview=dip1021
7 fail_compilation/test21025.d(15): Error: variable `r` cannot be read at compile time
8 fail_compilation/test21025.d(15): called from here: `binaryFun(r, r)`
9 fail_compilation/test21025.d(24): Error: template `test21025.uniq` is not callable using argument types `!()(void[])`
10 fail_compilation/test21025.d(14): Candidate is: `uniq()(int[] r)`
15 if (binaryFun(r
, r
)) {}
17 bool binaryFun(T
, U
)(T
, U
)
22 void generateStatements()