-
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.
Backport "Make error reporting resilient to exception thrown while re…
…porting" to LTS (#21059) Backports #20158 to the LTS branch. PR submitted by the release tooling. [skip ci]
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 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,17 @@ | ||
// LTS specific change: -Yno-deep-subtypes makes it crash, in Next is placed in neg/ | ||
trait Expr: | ||
type Value | ||
object Expr: | ||
type Of[V] = Expr { type Value = V } | ||
type ExtractValue[F <: Expr] = F match | ||
case Expr.Of[v] => v | ||
import Expr.ExtractValue | ||
|
||
class SimpleLoop1 extends Expr: | ||
type Value = ExtractValue[SimpleLoop2] | ||
|
||
class SimpleLoop2 extends Expr: | ||
type Value = ExtractValue[SimpleLoop1] | ||
|
||
object Test1: | ||
val x: ExtractValue[SimpleLoop1] = 1 // error |