File tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/transform/patmat
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -79,11 +79,11 @@ trait SpaceLogic {
79
79
/** Is `tp1` a subtype of `tp2`? */
80
80
def isSubType (tp1 : Type , tp2 : Type ): Boolean
81
81
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.
84
84
*
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.
87
87
*/
88
88
def isSameUnapply (tp1 : TermRef , tp2 : TermRef ): Boolean
89
89
You can’t perform that action at this time.
0 commit comments