Skip to content

Commit 9675b84

Browse files
committed
Add precondition to doc comment.
1 parent 2b41116 commit 9675b84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dotty/tools/dotc/core/TypeApplications.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ object TypeApplications {
180180
/** Merge `tp1` and `tp2` under a common lambda, combining them with `op`.
181181
* @param tparams1 The type parameters of `tp1`
182182
* @param tparams2 The type parameters of `tp2`
183+
* @pre tparams1.length == tparams2.length
183184
* Produces the type lambda
184185
*
185186
* [v1 X1 B1, ..., vn Xn Bn] -> op(tp1[X1, ..., Xn], tp2[X1, ..., Xn])

0 commit comments

Comments
 (0)