You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Make CanThrow a @capability class
2. Fix pure arrow handling in parser
3. Avoid misleading type mismatch message
4. Make map and filter conserve Const capturesets if there's no change
5. Expand $throws clauses to context function types
6. Exempt compiletime.erasedValue for "no '*'" checks
7. Capability escape checking for try
/** A capability class that allows to throw exception `E`. When used with the
6
6
* experimental.saferExceptions feature, a `throw Ex()` expression will require
7
7
* a given of class `CanThrow[Ex]` to be available.
8
8
*/
9
-
@experimental
9
+
@experimental@capability
10
10
@implicitNotFound("The capability to throw exception ${E} is missing.\nThe capability can be provided by one of the following:\n - Adding a using clause `(using CanThrow[${E}])` to the definition of the enclosing method\n - Adding `throws ${E}` clause after the result type of the enclosing method\n - Wrapping this piece of code with a `try` block that catches ${E}")
0 commit comments