Created
September 10, 2008 19:04
-
-
Save stevej/10017 to your computer and use it in GitHub Desktop.
Showing how to import from an instance of a class.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo { | |
type Bar = Map[String, Map[String, Any]] | |
def bar(): Bar = Map() | |
} | |
class Baz { | |
val foo = new Foo() | |
import foo._ | |
val bar: Bar = foo.bar() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment