Skip to content

Instantly share code, notes, and snippets.

@stevej
Created September 10, 2008 19:04
Show Gist options
  • Save stevej/10017 to your computer and use it in GitHub Desktop.
Save stevej/10017 to your computer and use it in GitHub Desktop.
Showing how to import from an instance of a class.
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