Skip to content

Commit cf1405f

Browse files
committed
Update documentation (thanks @smarter)
1 parent 74e46c5 commit cf1405f

File tree

1 file changed

+4
-4
lines changed
  • compiler/src/dotty/tools/dotc/transform/patmat

1 file changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/transform/patmat/Space.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ trait SpaceLogic {
7979
/** Is `tp1` a subtype of `tp2`? */
8080
def isSubType(tp1: Type, tp2: Type): Boolean
8181

82-
/** Whether we may assume the two Unapply the same?
83-
* That is, given the same parameter, returns the same result.
82+
/** True if we can assume that the two unapply methods are the same.
83+
* That is, given the same parameter, they return the same result.
8484
*
85-
* This is more general than purity, as the same `unapply` method may
86-
* take different prefix, thus behaves differently.
85+
* We assume that unapply methods are pure, but the same method may
86+
* be called with different prefixes, thus behaving differently.
8787
*/
8888
def isSameUnapply(tp1: TermRef, tp2: TermRef): Boolean
8989

0 commit comments

Comments
 (0)