Skip to content

Instantly share code, notes, and snippets.

@Kilobyte22
Last active August 29, 2015 14:04
Show Gist options
  • Save Kilobyte22/000f0407849ad24a3556 to your computer and use it in GitHub Desktop.
Save Kilobyte22/000f0407849ad24a3556 to your computer and use it in GitHub Desktop.
# valid, because only one method is extern
extern def a(value: String)
def a(value: Object) = a(value.__tostring())
# invalid, because 2 extern methods/functions with same name
extern def a(value: String)
extern def a(value: Object)
# This is how print is defined so it can be accessed
extern def print(thing: Object*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment