mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
Back to naked constructors.
This commit is contained in:
@@ -81,7 +81,7 @@ eq ident(non?.existent().method()), undefined, 'soaks inner values'
|
||||
# Soaks constructor invocations.
|
||||
a = 0
|
||||
class Foo
|
||||
constructor: -> a += 1
|
||||
-> a += 1
|
||||
bar: "bat"
|
||||
|
||||
ok (new Foo())?.bar is 'bat'
|
||||
|
||||
Reference in New Issue
Block a user