-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure we don't lose
erased
in method types on Setup
- Loading branch information
Showing
3 changed files
with
43 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import language.experimental.saferExceptions | ||
import language.experimental.erasedDefinitions | ||
import language.experimental.captureChecking | ||
|
||
class Ex1 extends Exception("Ex1") | ||
class Ex2 extends Exception("Ex2") | ||
class Ex3 extends Exception("Ex3") | ||
|
||
def foo8a(i: Int) = | ||
(erased xx1: CanThrow[Ex2]^) ?=> throw new Ex2 | ||
|
||
def foo9a(i: Int) | ||
: (erased x$0: CanThrow[Ex3]^) | ||
?=> (erased x$1: CanThrow[Ex2]^) | ||
?=> (erased x$2: CanThrow[Ex1]^) | ||
?=> Unit | ||
= (erased x$1: CanThrow[Ex3]^) | ||
?=> (erased x$2: CanThrow[Ex2]^) | ||
?=> (erased x$3: CanThrow[Ex1]^) | ||
?=> throw new Ex3 |