Skip to content

Descendants of ImplicitFunction1 are not accepted where ImplicitFunction1 is expected #7090

@ojow

Description

@ojow
trait IF1 extends ImplicitFunction1[Int, String]

def if1: IF1 = ???

def foo(f: ImplicitFunction1[Int, String]) = ???

foo(if1)
/*
1 |foo(if1)
  |    ^^^
  |    Found:    IF1
  |    Required: String
*/

Seems like unnecessary exception from the LSP.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions