diff options
-rw-r--r-- | core/testdata/format/multipleTypeParameterConstraints.kt | 11 | ||||
-rw-r--r-- | core/testdata/format/multipleTypeParameterConstraints.md | 12 |
2 files changed, 20 insertions, 3 deletions
diff --git a/core/testdata/format/multipleTypeParameterConstraints.kt b/core/testdata/format/multipleTypeParameterConstraints.kt index 8fd62e11..9d085c3c 100644 --- a/core/testdata/format/multipleTypeParameterConstraints.kt +++ b/core/testdata/format/multipleTypeParameterConstraints.kt @@ -1,2 +1,11 @@ -fun f<T> where T: Appendable, T: CharSequence { +interface A { + +} + +interface B { + +} + + +fun f<T> where T : A, T : B { } diff --git a/core/testdata/format/multipleTypeParameterConstraints.md b/core/testdata/format/multipleTypeParameterConstraints.md index 74532ffe..5dd45e4e 100644 --- a/core/testdata/format/multipleTypeParameterConstraints.md +++ b/core/testdata/format/multipleTypeParameterConstraints.md @@ -1,5 +1,13 @@ -[test](test/index) / [f](test/f) +[test](test/index) / [A](test/-a) + +# A + +`interface A`[test](test/index) / [B](test/-b) + +# B + +`interface B`[test](test/index) / [f](test/f) # f -`fun <T : CharSequence> f(): Unit`
\ No newline at end of file +`fun <T> f(): Unit where T : `[`A`](test/-a)`, T : `[`B`](test/-b)
\ No newline at end of file |