We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac2dcc0 commit 76d9d58Copy full SHA for 76d9d58
compiler/src/dotty/tools/dotc/cc/CaptureSet.scala
@@ -358,7 +358,8 @@ object CaptureSet:
358
mapRefs(newElems, tm, variance)
359
else
360
if variance <= 0 && !origin.isConst && (origin ne initial) then
361
- report.warning(i"trying to add elems $newElems to $this from unrecognized source of mapped set $this$whereCreated")
+ report.warning(i"trying to add elems $newElems from unrecognized source $origin of mapped set $this$whereCreated")
362
+ return CompareResult.fail(this)
363
Const(newElems)
364
val result = super.addNewElems(added.elems, origin)
365
if result == CompareResult.OK then
0 commit comments