From 1bb3f81b2e10dec7b949aea0dcb6d58726f4f4f0 Mon Sep 17 00:00:00 2001 From: michelou Date: Wed, 30 Jan 2008 11:16:10 +0000 Subject: updated some test files --- test/files/pos/t0301.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/files/pos/t0301.scala (limited to 'test/files/pos/t0301.scala') diff --git a/test/files/pos/t0301.scala b/test/files/pos/t0301.scala new file mode 100644 index 0000000000..cb68f38062 --- /dev/null +++ b/test/files/pos/t0301.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