You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: class Implementation needs to be abstract, since method func in class Base of type (x$1: Array[Object with Object])Unit is not defined
(Note that Array[Params with Object] does not match Array[Object]: their type parameters differ)
class Implementation extends Base[Object] {
error: method func overrides nothing
override def func(params: Array[Object]) {}
Writingfunc(params: Array[Object with Object]) fixes problem, but how is Object with Object different from just Object?
The text was updated successfully, but these errors were encountered:
@adriaanm said:
the problem is that during override checking the types RefinedType(List(Object), EmptyScope) and TypeRef(.., Object, Nil) are seen as different, the refined type arises from the fix for 4390 (when scala&java are compiled together), or from the original restriction wrt generic arrays (see sigToType, RestrictJavaArraysMap)
I have a fix in the works for Object{} and Object being seen as different, but I feel like the Array[T] handling could be improved
Writing
func(params: Array[Object with Object])
fixes problem, but how isObject with Object
different from justObject
?The text was updated successfully, but these errors were encountered: