5 fail_compilation/fail20033.d(38): Deprecation: `alias byKeyValue this` is deprecated - This was a bad idea
6 fail_compilation/fail20033.d(39): Deprecation: `alias byKeyValue this` is deprecated
7 fail_compilation/fail20033.d(41): Deprecation: `alias byKeyValue this` is deprecated - This was a bad idea
8 fail_compilation/fail20033.d(42): Deprecation: `alias byKeyValue this` is deprecated
18 alias KVT
= Tuple
!(string
, string
);
22 bool empty () { return false; }
23 KVT
front() { return KVT
.init
; }
27 auto byKeyValue () { return Range
.init
; }
29 deprecated("This was a bad idea")
30 alias byKeyValue
this;
35 bool empty () { return false; }
36 KVT
front() { return KVT
.init
; }
40 auto byKeyValue () { return Range
.init
; }
42 deprecated alias byKeyValue
this;
47 foreach (k
, v
; Test
.init
.byKeyValue
) {} // Fine
48 foreach (k
, v
; Test2
.init
.byKeyValue
) {} // Fine
49 foreach (k
, v
; Test
.init
) {} // Fails
50 foreach (k
, v
; Test2
.init
) {} // Fails
52 auto f1
= Test
.init
.front(); // Fails
53 auto f2
= Test2
.init
.front(); // Fails