scala-ide / scala-worksheet

A Scala IDE plugin for a multi-line REPL (called worksheet)
96 stars 24 forks source link

@tailrec is also bad #215

Closed valtih1978 closed 9 years ago

valtih1978 commented 9 years ago

@tailrec kills error reporting likewise unspecified overriding does. Once I add this attribute, code stops execuing in worksheet.

object o2 {
    @tailrec def f {if (false) f}
    1
}

Environment is the same.

kiritsuku commented 9 years ago

Actually, this is a duplicate of #214. It seems to me that it doesn't matter how you create an error, the only thing that matters is that an error exists and that the worksheet doesn't show it.