Skip to content

Commit 03ade70

Browse files
committed
Fix completion test
1 parent 8cfa482 commit 03ade70

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

compiler/src/dotty/tools/dotc/cc/CaptureOps.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,17 +230,17 @@ extension (tp: Type)
230230
* cannot be propagated between sets. If `a <: b` and `a` acquires `x?` then
231231
* `x` is propagated to `b` as a conservative approximation.
232232
*
233-
* Maybe capabilities should only arise for caoture sets that appear in invariant
234-
* position in their surrounding type. They are similar to TypeBunds types, but
233+
* Maybe capabilities should only arise for capture sets that appear in invariant
234+
* position in their surrounding type. They are similar to TypeBounds types, but
235235
* restricted to capture sets. For instance,
236236
*
237237
* Array[C^{x?}]
238238
*
239-
* should be morally equivaelent to
239+
* should be morally equivalent to
240240
*
241241
* Array[_ >: C^{} <: C^{x}]
242242
*
243-
* but it has fewer issues with type inference.
243+
* but it has fewer issues with type inference.
244244
*/
245245
def maybe(using Context): CaptureRef = tp match
246246
case tp: CaptureRef if tp.isTrackableRef =>

presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionPatternSuite.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class CompletionPatternSuite extends BaseCompletionSuite:
5757
"""|main scala
5858
|macros - scala.languageFeature.experimental
5959
|macroImpl - scala.reflect.macros.internal
60+
|maybeCapability - scala.annotation.internal
6061
|""".stripMargin
6162
)
6263

0 commit comments

Comments
 (0)