Skip to content

Commit 550368e

Browse files
committed
Implement CaptureAnnotation#derivedAnnotation as the identity
1 parent ea12003 commit 550368e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ case class CaptureAnnotation(refs: CaptureSet, boxed: Boolean)(cls: Symbol) exte
3939

4040
override def symbol(using Context) = cls
4141

42-
override def derivedAnnotation(tree: Tree)(using Context): Annotation =
43-
unsupported(i"derivedAnnotation(Tree), $tree, $refs")
42+
override def derivedAnnotation(tree: Tree)(using Context): Annotation = this
4443

4544
def derivedAnnotation(refs: CaptureSet, boxed: Boolean)(using Context): Annotation =
4645
if (this.refs eq refs) && (this.boxed == boxed) then this

0 commit comments

Comments
 (0)