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 872459d commit 5d668e6Copy full SHA for 5d668e6
compiler/src/dotty/tools/dotc/typer/Checking.scala
@@ -1424,8 +1424,6 @@ trait Checking {
1424
case _ =>
1425
report.error(em"@${cls.name} needs a string literal as argument", arg.srcPos)
1426
tree
1427
- case _ if cls.isRetainsLike =>
1428
- tree
1429
1430
checkAnnotTreeMap.transform(tree)
1431
@@ -1437,6 +1435,7 @@ trait Checking {
1437
1435
super.transform(tree)
1438
1436
case _: ( Literal
1439
| Ident
+ | This
1440
| New
1441
| Select
1442
| Apply
@@ -1450,7 +1449,8 @@ trait Checking {
1450
1449
| NamedArg
1451
| EmptyTree.type
1452
| Splice
1453
- | Hole) =>
+ | Hole
+ | Inlined) =>
1454
1455
1456
errorTree(
0 commit comments