I know that a slash can extend a class that has an empty parameter constructor:
class Foo trait Bar extends Foo
but is it possible to extend a class for which the constructor has some parameters?
class Foo(b: Boolean) trait Bar extends Foo(true)
Can this be achieved? It seems to be impossible. but why?
thanks
inheritance scala extends traits
user1819676
source share