scalatest - How not to require the import of scala.language.relectiveCalls -
i subclassed org.scalatest.flatspec
add practical tooling flattest. anywhere use subclass, have import scala.language.reflectiveclass
otherwise get
reflective access of structural type member method test should enabled making implicit value scala.language.reflectivecalls visible.
the method test
in question equivalent should
in standard flatspec:
it should "do stuff" in { ...}
why not necessary import reflectivecalls use flatspec should
necessary test
method, , how can avoid that?
the reason why getting warning have structural type reference or new {...}
call somewhere in test
method.
unfortunately there no way turn off warning other explicit scala.language.reflectiveclass
import or rewriting code.
Comments
Post a Comment