This commit is contained in:
Jeremy Ashkenas
2011-12-27 16:54:14 -08:00
parent 4a0e8139ea
commit 8dfec65034
3 changed files with 14 additions and 3 deletions

View File

@@ -610,3 +610,12 @@ test "#1966: external constructors should produce their return value", ->
ctor = -> {}
class A then constructor: ctor
ok (new A) not instanceof A
test "#1980: regression with an inherited class with static function members", ->
class A
class B extends A
@static: => 'value'
eq B.static(), 'value'