From 7a5f27108080226569e7eee1dc9bb7ef6da2b7ac Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 2 Jan 2017 14:45:48 +0700 Subject: Fix #1868 - Fix logic bug in match --- compiler/src/dotty/tools/dotc/typer/Typer.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/src/dotty/tools/dotc/typer/Typer.scala') diff --git a/compiler/src/dotty/tools/dotc/typer/Typer.scala b/compiler/src/dotty/tools/dotc/typer/Typer.scala index fe158dfe2..6dd3f45fc 100644 --- a/compiler/src/dotty/tools/dotc/typer/Typer.scala +++ b/compiler/src/dotty/tools/dotc/typer/Typer.scala @@ -1150,7 +1150,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit // classes defined in a such arguments should not be entered into the // enclosing class. c.exprContext(mdef, exprOwner) - case None => c + case _ => c } } // necessary in order to mark the typed ahead annotations as definitely typed: -- cgit v1.2.3