Skip to content

Unexpected "overloaded method needs result type" due to #4971 #125

Closed
@adriaanm

Description

@adriaanm
trait Bijection[A, B] extends (A => B) {
   def andThen[C](g: Bijection[B, C]): Bijection[A, C] = ???
   def compose[T](g: Bijection[T, A]) = g andThen this
}

// <console>:14: error: overloaded method compose needs result type
// def compose[T](g: Bijection[T, A]) = g andThen this
//                                        ^

adriaanm/util@78f8eef

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions