Skip to content

Instantly share code, notes, and snippets.

@naixx
Created March 11, 2015 14:43
Show Gist options
  • Save naixx/36807f263733609722cb to your computer and use it in GitHub Desktop.
Save naixx/36807f263733609722cb to your computer and use it in GitHub Desktop.
class A: DatabaseClass{
}
fun <reified T : DatabaseClass> T.Default.query() = myAwesomeQuery(javaClass<T>())
A.query()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment