@@ -92,14 +92,6 @@ import scala.quoted._
92
92
* /* Match type */
93
93
* '[T] =?= '[P] && T <:< P ===> matched
94
94
*
95
- * /* Match applied type */
96
- * '[ T0[T1, ..., Tn] ] =?= '[ P0[P1, ..., Pn] ] ===> '[T0] =?= '[P0] &&& ... &&& '[Tn] =?= '[Pn]
97
- *
98
- * /* Match annot (a) */
99
- * '[T @annot] =?= '[P] ===> '[T] =?= '[P]
100
- *
101
- * /* Match annot (b) */
102
- * '[T] =?= '[P @annot] ===> '[T] =?= '[P]
103
95
* ```
104
96
*/
105
97
private [quoted] object Matcher {
@@ -350,11 +342,6 @@ private[quoted] object Matcher {
350
342
case (scrutinee : TypeTree , pattern : TypeTree ) if scrutinee.tpe <:< pattern.tpe =>
351
343
matched
352
344
353
- /* Match applied type */
354
- // TODO remove this?
355
- case (Applied (tycon1, args1), Applied (tycon2, args2)) =>
356
- tycon1 =?= tycon2 &&& args1 =?= args2
357
-
358
345
/* Match val */
359
346
case (ValDef (_, tpt1, rhs1), ValDef (_, tpt2, rhs2)) if checkValFlags() =>
360
347
def rhsEnv = summon[Env ] + (scrutinee.symbol -> pattern.symbol)
@@ -378,15 +365,6 @@ private[quoted] object Matcher {
378
365
// TODO match tpt1 with tpt2?
379
366
matched
380
367
381
- // Ignore type annotations
382
- // TODO remove this
383
- /* Match annot (a) */
384
- case (Annotated (tpt, _), _) =>
385
- tpt =?= pattern
386
- /* Match annot (b) */
387
- case (_, Annotated (tpt, _)) =>
388
- scrutinee =?= tpt
389
-
390
368
case (NamedArg (name1, arg1), NamedArg (name2, arg2)) if name1 == name2 =>
391
369
arg1 =?= arg2
392
370
0 commit comments