Duplicate export error in enum


#1

I have this enum

export enum TestType {
    ECT = 1, RB = 2, PST = 3, CT = 4
}
export namespace TestType {
    export function getString(size: TestType) {
        switch (size) {
            case TestType.ECT:
                return "testType.ECT";
            case TestType.RB:
                return "testType.RB";
            case TestType.PST:
                return "testType.PST";
            case TestType.CT:
                return "testType.CT";

            default:
                return "undefined";
        }
    }
    export function getCode(size: TestType) {
        switch (size) {
            case TestType.ECT:
                return "ECT";
            case TestType.RB:
                return "RB";
            case TestType.PST:
                return "PST";
            case TestType.CT:
                return "CT";

            default:
                return "undefined";
        }
    }
    export function getSize() {
        return 4;
    }
}

Worked fine until I updated to RC.1.

Now I get the error:
bundle update failed: Duplicate export ‘TestType’ (8:11)

Does anyone know whats the error?
Thanks for the help.