@@ -59,15 +59,15 @@ object Synthetics:
59
59
/** Transform the type of a method either to its type under capture checking
60
60
* or back to its previous type.
61
61
* @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.
63
63
*/
64
64
def transform (sym : SymDenotation , toCC : Boolean )(using Context ): SymDenotation =
65
65
66
66
/** Add capture dependencies to the type of the `apply` or `copy` method of a case class.
67
67
* 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} )
69
69
* 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'} }
71
71
* where `'` is used to indicate the difference between parameter symbol and refinement name.
72
72
* Analogous for the copy method.
73
73
*/
@@ -126,7 +126,7 @@ object Synthetics:
126
126
case _ =>
127
127
info
128
128
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,
130
130
* or remove the added capture sets again if toCC = false.
131
131
*/
132
132
def transformUnapplyCaptures (info : Type )(using Context ): Type = info match
0 commit comments