File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/transform/patmat Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments