diff options
author | Martin Odersky <odersky@gmail.com> | 2016-07-15 15:14:38 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-07-15 15:14:46 +0200 |
commit | 91f067143c9564a052058fa02c73ae6cde3020e6 (patch) | |
tree | fc4cb290d0045cd9b45a599c3c3f9ab0b4ae985d /tests/pos/hkgadt.scala | |
parent | 12ba8af12b7157f7f8c4ff6e106f4b30b0bd472a (diff) | |
download | dotty-91f067143c9564a052058fa02c73ae6cde3020e6.tar.gz dotty-91f067143c9564a052058fa02c73ae6cde3020e6.tar.bz2 dotty-91f067143c9564a052058fa02c73ae6cde3020e6.zip |
Add tests
Adds the original test form #1381. t2660 looks similar.
Also adds some unrelated tests I had in the queue that now
compile.
Diffstat (limited to 'tests/pos/hkgadt.scala')
-rw-r--r-- | tests/pos/hkgadt.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/hkgadt.scala b/tests/pos/hkgadt.scala new file mode 100644 index 000000000..ac8caa6f3 --- /dev/null +++ b/tests/pos/hkgadt.scala @@ -0,0 +1,9 @@ +object HKGADT { + sealed trait Foo[F[_]] + final case class Bar() extends Foo[List] + + def frob[F[_]](foo: Foo[F]) = + foo match { + case Bar() => () + } +} |