You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case the annotation will generate a public accessor (and setter).
This accessor has a consistent name that avoids clashes (`<className>$inline$<definitionName>`).
It will have the same name as a private accessor that would have been generate
in a non final class by the old inline accessor generation.
Copy file name to clipboardExpand all lines: compiler/src/dotty/tools/dotc/typer/Checking.scala
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -530,7 +530,6 @@ object Checking {
530
530
if sym.is(Enum) then fail(em"@binaryAPI cannot be used on enum definitions.")
531
531
elseif sym.isType &&!sym.is(Module) &&!(sym.is(Given) || sym.companionModule.is(Given)) then fail(em"@binaryAPI cannot be used on ${sym.showKind} definitions")
532
532
elseif!sym.owner.isClass &&!(sym.is(Param) && sym.owner.isConstructor) then fail(em"@binaryAPI cannot be used on local definitions.")
533
-
elseif sym.is(Private) then fail(em"@binaryAPI cannot be used on private definitions.\n\nCould use private[${sym.owner.name}] or protected instead.")
0 commit comments