@@ -59,15 +59,15 @@ object Synthetics:
5959 /** Transform the type of a method either to its type under capture checking
6060 * or back to its previous type.
6161 * @param sym The method to transform @pre needsTransform(sym) must hold.
62- * @param toCC Whether to transform the type to cpature checking or back.
62+ * @param toCC Whether to transform the type to capture checking or back.
6363 */
6464 def transform (sym : SymDenotation , toCC : Boolean )(using Context ): SymDenotation =
6565
6666 /** Add capture dependencies to the type of the `apply` or `copy` method of a case class.
6767 * An apply method in a case class like this:
68- * case class CC(a: {d} A , b: B, {cap} c: C)
68+ * case class CC(a: A^ {d}, b: B, c: C^{cap} )
6969 * would get type
70- * def apply(a': {d} A , b: B, {cap} c': C): {a', c'} CC { val a = {a'} A , val c = {c'} C }
70+ * def apply(a': A^ {d}, b: B, c': C^{cap} ): CC^ {a', c'} { val a = A^ {a'}, val c = C^ {c'} }
7171 * where `'` is used to indicate the difference between parameter symbol and refinement name.
7272 * Analogous for the copy method.
7373 */
@@ -126,7 +126,7 @@ object Synthetics:
126126 case _ =>
127127 info
128128
129- /** Augment an unapply of type `(x: C): D` to `(x: {cap} C ): {x} D ` if toCC is true,
129+ /** Augment an unapply of type `(x: C): D` to `(x: C^ {cap}): D^ {x}` if toCC is true,
130130 * or remove the added capture sets again if toCC = false.
131131 */
132132 def transformUnapplyCaptures (info : Type )(using Context ): Type = info match
0 commit comments