What does this import exactly mean in Scala?

import, scala, syntax

Solution

It imports the methods and variables of the a object. So if you want to call `a.foo()`, you can just call `foo()` instead.

Problem

I encountered the following in Scala code: ``` class MyClass { ... val a = new A; import a._ } ``` What does exactly `val a = new A; import a._` mean ?

Original source