Given the following code:
class Foo[R](i: Int)(implicit ev: Ordering[R]) {
final type T = ev.type
}
I get the following error:
Error:(13, 16) private value ev escapes its defining scope as part of type Foo.this.ev.type type T = ev.type
Which makes me think implicits declared in a constructor are private.
Given that T
is final it won't be overridable, so it shouldn't cause any problem. What am I missing here?