Skip to content

Method call in subclass ruins "protected[this]-ness" #465

Closed
@scabug

Description

@scabug
class A[+T] {
  protected[this] def f(t: T) { }
}
class B extends A[Any] {
  f()
}

Doesn't work if compiled together: covariant type T occurs in contravariant position in type T of value t. Works if call to f in B is omitted.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions