From a99670b344b24366d13537db383904115bdad1b1 Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Fri, 4 Jan 2008 23:49:57 +0000 Subject: added regression test for t301 --- test/files/pos/t301.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/files/pos/t301.scala (limited to 'test/files/pos/t301.scala') diff --git a/test/files/pos/t301.scala b/test/files/pos/t301.scala new file mode 100644 index 0000000000..cb68f38062 --- /dev/null +++ b/test/files/pos/t301.scala @@ -0,0 +1,12 @@ +package fos + +abstract class Expr +case class Var extends Expr + +object Analyzer { + def substitution(expr: Expr, cls: (Var,Var)): Expr = + expr match { + case cls._2 => cls._1 // source of the error + case _ => expr + } +} -- cgit v1.2.3