From 6436fa67e561442ef2e2d9b99852a50f323ccacc Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 16 Mar 2014 18:39:36 +0100 Subject: More tests Added more tests which all pass, except for tests in disabled and pending. t0694 went from pos to neg, because the kind of alias type used in t0695 is no longer supported. --- tests/pos/t0301.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/pos/t0301.scala (limited to 'tests/pos/t0301.scala') diff --git a/tests/pos/t0301.scala b/tests/pos/t0301.scala new file mode 100644 index 000000000..24b477601 --- /dev/null +++ b/tests/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