Skip to content

Commit 508bdbf

Browse files
committed
Fix rebase breakage
1 parent 8c583b8 commit 508bdbf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: compiler/src/dotty/tools/dotc/cc/Setup.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,11 +352,11 @@ class Setup extends PreRecheck, SymTransformer, SetupAPI:
352352
if ann.symbol.isRetains then
353353
val parent2 = stripImpliedCaptureSet(parent1)
354354
if !tptToCheck.isEmpty then
355-
checkWellformedLater(parent2, ann.tree, tpt)
355+
checkWellformedLater(parent2, ann.tree, tptToCheck)
356356
try
357357
CapturingType(parent2, ann.tree.toCaptureSet)
358358
catch case ex: IllegalCaptureRef =>
359-
report.error(em"Illegal capture reference: ${ex.getMessage.nn}", tptToCheck.fold(NoSourcePosition)(_.srcPos))
359+
report.error(em"Illegal capture reference: ${ex.getMessage.nn}", tptToCheck.srcPos)
360360
parent2
361361
else
362362
t.derivedAnnotatedType(parent1, ann)

Diff for: tests/neg-custom-args/captures/use-capset.check

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
-- [E007] Type Mismatch Error: tests/neg-custom-args/captures/use-capset.scala:15:50 -----------------------------------
1414
15 | val _: () -> List[Object^{io}] -> Object^{io} = h2 // error, should be ->{io}
1515
| ^^
16-
| Found: (h2 : () ->? (x$0: List[box Object^{io}]^{}) ->{io} Object^{io})
17-
| Required: () -> List[box Object^{io}] -> Object^{io}
16+
| Found: (h2 : () ->? (x$0: List[box Object^]^{}) ->{io} Object^{io})
17+
| Required: () -> List[box Object^{io}] -> Object^{io}
1818
|
1919
| longer explanation available when compiling with `-explain`

0 commit comments

Comments
 (0)