diff options
author | liu fengyun <liu@fengy.me> | 2017-03-14 07:07:04 +0100 |
---|---|---|
committer | liu fengyun <liu@fengy.me> | 2017-03-14 09:15:00 +0100 |
commit | 6cc666f316575415d2d1779da3f7404fe9f04e3d (patch) | |
tree | 5888d558917ef56e30a5fc545a227892fab416da /tests/pos/i2071.scala | |
parent | 921f8bffc18b19449b2c1ad68c32725a7b7532e2 (diff) | |
download | dotty-6cc666f316575415d2d1779da3f7404fe9f04e3d.tar.gz dotty-6cc666f316575415d2d1779da3f7404fe9f04e3d.tar.bz2 dotty-6cc666f316575415d2d1779da3f7404fe9f04e3d.zip |
fix #2071: handle HKApply in SAMType
Diffstat (limited to 'tests/pos/i2071.scala')
-rw-r--r-- | tests/pos/i2071.scala | 7 |
1 files changed, 7 insertions, 0 deletions
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 |