tests/cases/compiler/base.d.ts(1,23): error TS1005: ',' expected.
tests/cases/compiler/base.d.ts(1,34): error TS1005: ',' expected.
tests/cases/compiler/boolean.ts(7,23): error TS1005: ',' expected.
tests/cases/compiler/boolean.ts(7,24): error TS1389: 'typeof' is not allowed as a variable declaration name.
tests/cases/compiler/boolean.ts(12,22): error TS1005: ';' expected.
tests/cases/compiler/number.ts(7,26): error TS1005: ',' expected.
tests/cases/compiler/number.ts(7,27): error TS1389: 'typeof' is not allowed as a variable declaration name.
tests/cases/compiler/number.ts(12,20): error TS1005: ';' expected.
tests/cases/compiler/string.ts(7,20): error TS1005: ',' expected.
tests/cases/compiler/string.ts(7,21): error TS1389: 'typeof' is not allowed as a variable declaration name.
tests/cases/compiler/string.ts(12,19): error TS1005: ';' expected.


==== tests/cases/compiler/base.d.ts (2 errors) ====
    declare const x: "foo".charCodeAt(0);
                          ~
!!! error TS1005: ',' expected.
                                     ~
!!! error TS1005: ',' expected.
    
==== tests/cases/compiler/string.ts (3 errors) ====
    interface String {
        typeof<T>(x: T): T;
    }
    
    class C {
        foo() {
            const x: "".typeof(this.foo);
                       ~
!!! error TS1005: ',' expected.
                        ~~~~~~
!!! error TS1389: 'typeof' is not allowed as a variable declaration name.
        }
    }
    
    const nodes = document.getElementsByTagName("li");
    type ItemType = "".typeof(nodes.item(0));
                      ~
!!! error TS1005: ';' expected.
    
==== tests/cases/compiler/number.ts (3 errors) ====
    interface Number {
        typeof<T>(x: T): T;
    }
    
    class C2 {
        foo() {
            const x: 3.141592.typeof(this.foo);
                             ~
!!! error TS1005: ',' expected.
                              ~~~~~~
!!! error TS1389: 'typeof' is not allowed as a variable declaration name.
        }
    }
    
    const nodes2 = document.getElementsByTagName("li");
    type ItemType2 = 4..typeof(nodes.item(0));
                       ~
!!! error TS1005: ';' expected.
    
==== tests/cases/compiler/boolean.ts (3 errors) ====
    interface Boolean {
        typeof<T>(x: T): T;
    }
    
    class C3 {
        foo() {
            const x: false.typeof(this.foo);
                          ~
!!! error TS1005: ',' expected.
                           ~~~~~~
!!! error TS1389: 'typeof' is not allowed as a variable declaration name.
        }
    }
    
    const nodes3 = document.getElementsByTagName("li");
    type ItemType3 = true.typeof(nodes.item(0));
                         ~
!!! error TS1005: ';' expected.
    
    