File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ object Applications {
218218 val isProduct = args match
219219 case x :: xs => x.isInstanceOf [untpd.NamedArg ] || xs.nonEmpty
220220 case _ => false
221- if isProduct && ! tp.derivesFrom(defn.SeqClass ) then
221+ if isProduct && ! tp.derivesFrom(defn.SeqClass ) && ! tp.isError then
222222 productUnapplySelectors(tp).getOrElse:
223223 // There are unapplys with return types which have `get` and `_1, ..., _n`
224224 // as members, but which are not subtypes of Product. So `productUnapplySelectors`
Original file line number Diff line number Diff line change 1+ object Unpack {
2+ (1 , 2 ) match {
3+ case Unpack (first, _) => first
4+ }
5+ def unapply (e : (Int , Int )): Option [T ] = ???
6+ }
You can’t perform that action at this time.
0 commit comments