Closed AugustNagro closed 2 years ago
One reason this would be useful is for function specialization, since in Scala 3 the Function subclasses are not specialized, and box their parameters.
Actually, function specialization is implemented now! my bad.
The
@targetName
annotation works great for this example:But replacing the types with equivalent SAM traits does not compile with
Ambiguous overload
error: