-
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.
Check is inline unapply has leading implicits
We patch the crash in the compiler but do not support this feature yet. To support it see #13158 Fixes #12991
- Loading branch information
1 parent
7d6d42f
commit 776e4d6
Showing
2 changed files
with
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
object Foo: | ||
inline def unapply(using String)(i: Int): Some[Int] = Some(i) | ||
|
||
given String = "" | ||
|
||
val i = 10 match | ||
case Foo(x) => x // error |