Debian Codegraph @

gcc/testsuite/gdc.test/compilable/vararg.d

raw
1 void main ()
2 {
3 variance([1.0, 2, 3]);
4 }
5
6 alias meanType(T) = T;
7
8 template variance(bool stable = true)
9 {
10 void variance(Range)(Range r, bool isPopulation = false)
11 {
12 .variance!(double, stable)(r, isPopulation);
13 }
14 }
15
16 template variance(F, bool stable = true)
17 {
18 void variance(Range)(Range r, bool isPopulation = false) {}
19 void variance(scope const F[] ar...) {}
20 }