diff options
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 } } |