Skip to content

Commit 80db2a9

Browse files
committed
Nothing wrong with generalizing
1 parent 819953e commit 80db2a9

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic {
654654
* Otherwise, return NoType.
655655
*
656656
*/
657-
def instantiate(tp1: NamedType, tp2: Type)(implicit ctx: Context): Type = {
657+
def instantiate(tp1: Type, tp2: Type)(implicit ctx: Context): Type = {
658658
// Fix subtype checking for child instantiation,
659659
// such that `Foo(Test.this.foo) <:< Foo(Foo.this)`
660660
// See tests/patmat/i3938.scala

0 commit comments

Comments
 (0)