diff options
Diffstat (limited to 'libgo/go/go/types/testdata/cycles.src')
-rw-r--r-- | libgo/go/go/types/testdata/cycles.src | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libgo/go/go/types/testdata/cycles.src b/libgo/go/go/types/testdata/cycles.src index 621d83c9450..b4bd5d8b157 100644 --- a/libgo/go/go/types/testdata/cycles.src +++ b/libgo/go/go/types/testdata/cycles.src @@ -140,4 +140,13 @@ func (*T12) m() {} type ( P3 *T13 T13 /* ERROR cycle */ T13 -)
\ No newline at end of file +) + +// test cases for issue 18643 +// (type cycle detection when non-type expressions are involved) +type ( + T14 [len(T14 /* ERROR cycle */ {})]int + T15 [][len(T15 /* ERROR cycle */ {})]int + T16 map[[len(T16 /* ERROR cycle */ {1:2})]int]int + T17 map[int][len(T17 /* ERROR cycle */ {1:2})]int +) |