diff options
author | Miles Sabin <miles@milessabin.com> | 2016-04-20 10:37:38 +0100 |
---|---|---|
committer | Miles Sabin <miles@milessabin.com> | 2016-04-20 10:37:38 +0100 |
commit | fa65623cd8d4e60368126fc958c7185ca5706a6b (patch) | |
tree | 9e54d8cc34d7ca2e051e06e52ff4e8d7ae869d25 /test/files/pos/hkgadt.scala | |
parent | 9ec6278e05f6acd471473342067e922cb85293d6 (diff) | |
download | scala-fa65623cd8d4e60368126fc958c7185ca5706a6b.tar.gz scala-fa65623cd8d4e60368126fc958c7185ca5706a6b.tar.bz2 scala-fa65623cd8d4e60368126fc958c7185ca5706a6b.zip |
Added missing result type to test.
Diffstat (limited to 'test/files/pos/hkgadt.scala')
-rw-r--r-- | test/files/pos/hkgadt.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/pos/hkgadt.scala b/test/files/pos/hkgadt.scala index efd7d3df21..0f3739f4d4 100644 --- a/test/files/pos/hkgadt.scala +++ b/test/files/pos/hkgadt.scala @@ -12,7 +12,7 @@ object HKGADT { sealed trait Foo1[F] final case class Bar1() extends Foo1[Int] - def frob1[A](foo: Foo1[A]) = foo match { + def frob1[A](foo: Foo1[A]): A = foo match { case Bar1() => 1 } } |