Skip to content

Commit a5696e6

Browse files
committed
Apply review suggestions
1 parent fedb6d4 commit a5696e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2025-05-07-release-notes-3.7.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ case class Release(version: String, issues: List[String])
8080

8181
### [SIP-52: Binary APIs](https://docs.scala-lang.org/sips/binary-api.html)
8282

83-
For library maintainers, Scala 3.7.0 stabilizes the `@publicInBinary` annotation, introduced experimentally in Scala 3.4. This annotation ensures binary compatibility when inline methods access non-public members and prevent generation of redundant accessors required by inlining mechanism.
83+
For library maintainers, Scala 3.7.0 stabilizes the `@publicInBinary` annotation, introduced experimentally in Scala 3.4. This annotation ensures binary compatibility when inline methods access non-public members and prevents generation of redundant accessors required by inlining mechanism.
8484

8585
Inline methods are always inlined at their call sites. If they refer to members not visible outside their defining scope, the compiler generates accessor methods. The accessors are not subject to binary compatibility; they might be emitted differently by newer versions of compiler or eventually removed.
8686
The `@publicInBinary` annotation addresses this by emitting those members as public in bytecode, while maintaining restricted source-level visibility.
@@ -271,7 +271,7 @@ trait Show[T]:
271271
def show(): Unit
272272

273273
object Show {
274-
implicit transparent inline def auto[T]: Show[T] = ${ autoImpl[T] }
274+
transparent inline given auto[T]: Show[T] = ${ autoImpl[T] }
275275

276276
private def autoImpl[T: Type](using Quotes): Expr[Show[T]] =
277277
import quotes.reflect.*

0 commit comments

Comments
 (0)