From 6cc666f316575415d2d1779da3f7404fe9f04e3d Mon Sep 17 00:00:00 2001 From: liu fengyun Date: Tue, 14 Mar 2017 07:07:04 +0100 Subject: fix #2071: handle HKApply in SAMType --- tests/pos/i2071.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/pos/i2071.scala (limited to 'tests') diff --git a/tests/pos/i2071.scala b/tests/pos/i2071.scala new file mode 100644 index 000000000..1855dccf4 --- /dev/null +++ b/tests/pos/i2071.scala @@ -0,0 +1,7 @@ +object Test { + type PF[A, B] = PartialFunction[A, B] + + val f: PF[Int, String] = { + case i => "bar" + } +} \ No newline at end of file -- cgit v1.2.3