I have the following code:
trait A { import org.somepackage.C._ } class B extends A { def getValue = value ^^^^^ } object C { var value = 5 }
The value in class B not displayed, which means that the built-in import of class A not inherited by B , although value clearly visible inside A How to achieve the effect of import inheritance so that I can not explicitly import the same things in several classes where the character A is mixed in?
source share