Skip to content

Commit d196cf7

Browse files
author
Matthias Güdemann
committed
Add regression test for recursive generic-parameters
1 parent d7b1572 commit d196cf7

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed
Binary file not shown.
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class KeyValue<K, V> {
2+
KeyValue<K, V> next;
3+
KeyValue<V, K> reverse;
4+
K key;
5+
V value;
6+
}
7+
class MutuallyRecursiveGenerics {
8+
void f() {
9+
KeyValue<String, Integer> example1;
10+
}
11+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CORE
2+
MutuallyRecursiveGenerics.class
3+
--cover location --function MutuallyRecursiveGenerics.f
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
--
8+
This failed before due to infinite recursion in the way how the instantiated
9+
generic parameters were used. cf. TG-3067

0 commit comments

Comments
 (0)