mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
more spec
This commit is contained in:
parent
232bad8fc3
commit
caa724d098
@ -285,6 +285,13 @@ describe "class", ->
|
||||
super! + 100
|
||||
}
|
||||
|
||||
class OtherSub extends Base
|
||||
value: if true
|
||||
=> 5 + super!
|
||||
else
|
||||
=> 2 + super!
|
||||
|
||||
assert.same 1 + 100 + 12, Sub!\value!
|
||||
assert.same 6, OtherSub!\value!
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user