diff options
author | Martin Odersky <odersky@gmail.com> | 2014-03-16 18:39:36 +0100 |
---|---|---|
committer | Tobias Schlatter <tobias@meisch.ch> | 2014-03-21 11:24:03 +0100 |
commit | 6436fa67e561442ef2e2d9b99852a50f323ccacc (patch) | |
tree | 9063ea5a0df1f01fb69ef64dcf0ef638e63f54e2 /tests/pos/t0301.scala | |
parent | 6f1ef32d728320c31cc59daad0f4849c9cd0a87c (diff) | |
download | dotty-6436fa67e561442ef2e2d9b99852a50f323ccacc.tar.gz dotty-6436fa67e561442ef2e2d9b99852a50f323ccacc.tar.bz2 dotty-6436fa67e561442ef2e2d9b99852a50f323ccacc.zip |
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.
Diffstat (limited to 'tests/pos/t0301.scala')
-rw-r--r-- | tests/pos/t0301.scala | 12 |
1 files changed, 12 insertions, 0 deletions
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 + } +} |