diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-09-23 11:21:09 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2014-09-23 11:21:09 +0200 |
commit | 8bd14310f60c1be997a62eaba84dd49624ea2df6 (patch) | |
tree | 39369f935293359c80414f0cdafbdf8acc0468c3 /tests | |
parent | 857cd4839c872d229994c9d27bb06ef866dad93d (diff) | |
download | dotty-8bd14310f60c1be997a62eaba84dd49624ea2df6.tar.gz dotty-8bd14310f60c1be997a62eaba84dd49624ea2df6.tar.bz2 dotty-8bd14310f60c1be997a62eaba84dd49624ea2df6.zip |
Renamed parameters in Typer&Applictaions.
Indicating that pt is type of selector is this pattern match makes it easier to follow.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/t1164.scala | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/pos/t1164.scala b/tests/pos/t1164.scala deleted file mode 100644 index ab58c1d6b..000000000 --- a/tests/pos/t1164.scala +++ /dev/null @@ -1,29 +0,0 @@ - - -object test { - - class Foo[a](val arg : a) - - object Foo { - def apply [a](arg : a, right :a) = new Foo[a](arg) - def unapply [a](m : Foo[a]) = Some (m.arg) - } - - def matchAndGetArgFromFoo[a]( e:Foo[a]):a = {e match { case Foo(x) => x }} - - - // Try the same thing as above but use function as argument to Bar - // constructor - - type FunIntToA [a] = (Int) => a - class Bar[a] (var f: FunIntToA[a]) - - object Bar { - def apply[a](f: FunIntToA[a]) = new Bar[a](f) - def unapply[a](m: Bar[a]) = Some (m.f) - } - - def matchAndGetFunFromBar[a](b:Bar[a]) : FunIntToA[a] = { b match { case Bar(x) => x}} - - -} |