We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6efd92d commit eb6deadCopy full SHA for eb6dead
compiler/src/dotty/tools/dotc/typer/Checking.scala
@@ -832,6 +832,7 @@ trait Checking {
832
val UnApply(fn, _, _) = pat: @unchecked
833
fn match
834
case Select(id, _) => id
835
+ case Apply(Select(id, _), _) => id
836
case TypeApply(Select(id, _), _) => id
837
em"pattern binding uses refutable extractor `$extractor`"
838
tests/pos/i15650.scala
@@ -0,0 +1,10 @@
1
+class Rational
2
+
3
+import scala.quoted.*
4
5
+object meta:
6
+ object rationalTE:
7
+ def unapply(using Quotes)(tr: quotes.reflect.TypeRepr): Option[Rational] = ???
8
9
+ def foo(using Quotes)(p: quotes.reflect.TypeRepr): Unit =
10
+ val rationalTE(e) = p // warn: pattern binding uses refutable extractor `meta.rationalTE`
0 commit comments