-
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.
Fix #12559: Try decomposable types in isSubspace
- Loading branch information
1 parent
9b4be14
commit 9a0182a
Showing
3 changed files
with
39 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
10: Match case Unreachable | ||
27: Match case Unreachable |
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,35 @@ | ||
package akka.event | ||
|
||
object TestA: | ||
sealed trait LogEvent | ||
|
||
object LogEvent: | ||
def myOrdinal(e: LogEvent): Int = e match | ||
case e: Error => 0 | ||
// case e: Warning => 1 | ||
case e: LogEventWithMarker => 2 | ||
|
||
|
||
class Error() extends LogEvent | ||
class Error2() extends Error() with LogEventWithMarker | ||
|
||
// case class Warning() extends LogEvent | ||
|
||
sealed trait LogEventWithMarker extends LogEvent | ||
|
||
object TestB: | ||
sealed trait LogEvent | ||
|
||
object LogEvent: | ||
def myOrdinal(e: LogEvent): Int = e match | ||
case e: Error => 0 | ||
case e: Warning => 1 | ||
case e: LogEventWithMarker => 2 | ||
|
||
|
||
case class Error() extends LogEvent | ||
class Error2() extends Error() with LogEventWithMarker | ||
|
||
case class Warning() extends LogEvent | ||
|
||
sealed trait LogEventWithMarker extends LogEvent |