jashkenas/coffee-script — Issue #1986: Declaring prototype methods in loops
Author: shesek
Created: 2011-12-30 02:39:50+00:00
State: open

Any reason defining prototype methods works well inside of if statements, but it doesn't work in loops?

```coffeescript
class Foo
if foo
bar: 123 # Works well
while foo
bar: 123 #UNEXPECTED 'OUTDENT'
```