Putting 'constructor' back. Improving constructor definitions.

This commit is contained in:
Jeremy Ashkenas
2010-11-13 12:17:09 -05:00
parent 3059db8515
commit 354708dbc2
13 changed files with 120 additions and 98 deletions

View File

@@ -81,7 +81,7 @@ eq ident(non?.existent().method()), undefined, 'soaks inner values'
# Soaks constructor invocations.
a = 0
class Foo
-> a += 1
constructor: -> a += 1
bar: "bat"
ok (new Foo())?.bar is 'bat'