constructor: prefix is back for classes. punto.

This commit is contained in:
Jeremy Ashkenas
2010-11-14 14:21:55 -05:00
parent 15bdcf79e6
commit be17b8215c
10 changed files with 89 additions and 79 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'