Skip to content

Instantly share code, notes, and snippets.

@freshtonic
Created April 28, 2010 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save freshtonic/381550 to your computer and use it in GitHub Desktop.
Save freshtonic/381550 to your computer and use it in GitHub Desktop.
#!/usr/bin/env coffee
class Base
someMethod: ->
sys.puts "hello from Base"
class Derived
someOtherMethod: ->
someMethod() # error: method doesn't exist
#class Derived
# someOtherMethod: ->
# this.someMethod() # error: method doesn't exist
#class Derived
# someOtherMethod: ->
# super.someMethod() # syntax error
x: new Derived()
x.someOtherMethod()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment