Skip to content

Instantly share code, notes, and snippets.

@machisuji
Created December 3, 2013 11:19
Show Gist options
  • Save machisuji/7767596 to your computer and use it in GitHub Desktop.
Save machisuji/7767596 to your computer and use it in GitHub Desktop.
class Person(firstName: String, lastName: String, age: Int) {
def fullName(implicit val titleProvider: () => String): String = {
val title = titleProvider()
LIST_STUFF_IN_SCOPE()
/*
This should list:
firstName, lastName, age, title, titleProvider
*/
s"$title $firstName $lastName"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment