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
16
16
* avoids the error that would be raised when unboxing `*`.
17
17
*/
18
18
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 {
19
19
ProblemFilters .exclude[MissingClassProblem ](" scala.runtime.stdLibPatches.language$experimental$pureFunctions$" ),
20
20
ProblemFilters .exclude[MissingClassProblem ](" scala.runtime.stdLibPatches.language$experimental$captureChecking$" ),
21
21
ProblemFilters .exclude[MissingClassProblem ](" scala.caps" ),
22
+ ProblemFilters .exclude[MissingClassProblem ](" scala.caps$Pure" ),
22
23
)
23
24
}
You can’t perform that action at this time.
0 commit comments