ceylon/ceylon-web-ide-backend — Issue #6: Wrap in function instead of class
Author: chochos
Created: 2012-02-20 18:24:38+00:00
State: open

The user code should be wrapped in a function instead of a class, to avoid problems with certain restrictions. For instance, this code runs fine inside a function:

````
abstract class Algo() of uno|dos {}
object uno extends Algo() {}
object dos extends Algo() {}
````

But if it's wrapped in a class, a runtime error `$$uno not found` occurs.