File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -16,3 +16,9 @@ import annotation.experimental
1616 * avoids the error that would be raised when unboxing `*`.
1717 */
1818 extension [T ](x : T ) def unsafeUnbox : T = x
19+
20+ /** Mixing in this trait forces a trait or class to be pure, i.e.
21+ * have no capabilities retained in its self type.
22+ */
23+ trait Pure :
24+ this : Pure =>
Original file line number Diff line number Diff line change @@ -19,5 +19,6 @@ object MiMaFilters {
1919 ProblemFilters .exclude[MissingClassProblem ](" scala.runtime.stdLibPatches.language$experimental$pureFunctions$" ),
2020 ProblemFilters .exclude[MissingClassProblem ](" scala.runtime.stdLibPatches.language$experimental$captureChecking$" ),
2121 ProblemFilters .exclude[MissingClassProblem ](" scala.caps" ),
22+ ProblemFilters .exclude[MissingClassProblem ](" scala.caps$Pure" ),
2223 )
2324}
You can’t perform that action at this time.
0 commit comments