Are inner classes possible in Unity JavaScript?

If so, what am I doing wrong here?

class OuterClass {

    var ic : InnerClass;

    function OuterClass() {
        ic = new InnerClass();
        ic.DoSomething();
    }

    class InnerClass {
        function DoSomething() {
            Debug.Log("Something done.");
        }
    }
}

gives the error:

BCE0044: expecting }, found 'class'.

The example you gave is missing loads of braces, but you're right - it doesn't look like javascript supports nested classes