Skip to content

Commit

Permalink
Merge pull request #2139 from tkawachi/patch-2
Browse files Browse the repository at this point in the history
Fix compile
  • Loading branch information
julienrf authored Jul 25, 2021
2 parents 02f982e + 2b24502 commit 7f0e336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _scala3-reference/metaprogramming/compiletime-ops.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ would use it as follows:
import scala.compiletime.summonFrom

inline def setFor[T]: Set[T] = summonFrom {
case ord: Ordering[T] => new TreeSet[T](using ord)
case ord: Ordering[T] => new TreeSet[T]()(using ord)
case _ => new HashSet[T]
}
```
Expand Down

0 comments on commit 7f0e336

Please sign in to comment.