1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Adding warning about accidentally-comprehended-functions. Issue #896.

This commit is contained in:
Jeremy Ashkenas 2010-12-05 15:29:28 -05:00
parent 24183d9a39
commit 06647bdd0a
5 changed files with 31 additions and 45 deletions

View file

@ -1,17 +1,6 @@
var food, lunch, pos, roid, roid2, _i, _j, _len, _len2, _len3, _ref;
var food, _i, _len, _ref;
_ref = ['toast', 'cheese', 'wine'];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
food = _ref[_i];
lunch = eat(food);
}
for (pos = 0, _len2 = asteroids.length; pos < _len2; pos++) {
roid = asteroids[pos];
for (_j = 0, _len3 = asteroids.length; _j < _len3; _j++) {
roid2 = asteroids[_j];
if (roid !== roid2) {
if (roid.overlaps(roid2)) {
roid.explode();
}
}
}
eat(food);
}