Open lrytz opened 11 years ago
Oh, that is a funny one indeed. I had a quick look at the instrumented source, but I couldn't see anything clearly wrong. Thanks for reporting it!
Seems to be the same limitation as with overloaded functions (the body of the object is moved to a block, meaning fields become local variable rules, with different visibility rules).
The following does not compile in the worksheet:
using a
lazy val
works.