Created
April 28, 2010 00:26
-
-
Save freshtonic/381550 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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