Is it possible to extend a package private class in scala that is defined in a 3rd party jar. So for instance if a 3rd party jar that my code depends on has some class like so
private [somepackage] A {
}
can I somehow subclass this class in my code?
Thanks
Not according to Programming in Scala 3rd Ed., paraphrased:
Note that here, package
b
is in packagea
.Curiously, this doesn't appear to be the case in the REPL: see this post