//// [incrementOperatorWithUnsupportedStringType.ts]
// ++ operator on string type
var STRING: string;
var STRING1: string[] = ["", ""];

function foo(): string { return ""; }

class A {
    public a: string;
    static foo() { return ""; }
}
module M {
    export var n: string;
}

var objA = new A();

// string type var
var ResultIsNumber1 = ++STRING;
var ResultIsNumber2 = ++STRING1;

var ResultIsNumber3 = STRING++;
var ResultIsNumber4 = STRING1++;

// string type literal
var ResultIsNumber5 = ++"";
var ResultIsNumber6 = ++{ x: "", y: "" };
var ResultIsNumber7 = ++{ x: "", y: (s: string) => { return s; } };

var ResultIsNumber8 = ""++;
var ResultIsNumber9 = { x: "", y: "" }++;
var ResultIsNumber10 = { x: "", y: (s: string) => { return s; } }++;

// string type expressions
var ResultIsNumber11 = ++objA.a;
var ResultIsNumber12 = ++M.n;
var ResultIsNumber13 = ++STRING1[0];
var ResultIsNumber14 = ++foo();
var ResultIsNumber15 = ++A.foo();
var ResultIsNumber16 = ++(STRING + STRING);

var ResultIsNumber17 = objA.a++;
var ResultIsNumber18 = M.n++;
var ResultIsNumber19 = STRING1[0]++;
var ResultIsNumber20 = foo()++;
var ResultIsNumber21 = A.foo()++;
var ResultIsNumber22 = (STRING + STRING)++;

// miss assignment operators
++"";
++STRING;
++STRING1;
++STRING1[0];
++foo();
++objA.a;
++M.n;
++objA.a, M.n;

""++;
STRING++;
STRING1++;
STRING1[0]++;
foo()++;
objA.a++;
M.n++;
objA.a++, M.n++;

//// [incrementOperatorWithUnsupportedStringType.js]
// ++ operator on string type
var STRING;
var STRING1 = [
    "",
    ""
];
function foo() {
    return "";
}
var A = (function () {
    function A() {
    }
    A.foo = function () {
        return "";
    };
    return A;
})();
var M;
(function (M) {
    M.n;
})(M || (M = {}));
var objA = new A();
// string type var
var ResultIsNumber1 = ++STRING;
var ResultIsNumber2 = ++STRING1;
var ResultIsNumber3 = STRING++;
var ResultIsNumber4 = STRING1++;
// string type literal
var ResultIsNumber5 = ++"";
var ResultIsNumber6 = ++{
    x: "",
    y: ""
};
var ResultIsNumber7 = ++{
    x: "",
    y: function (s) {
        return s;
    }
};
var ResultIsNumber8 = ""++;
var ResultIsNumber9 = {
    x: "",
    y: ""
}++;
var ResultIsNumber10 = {
    x: "",
    y: function (s) {
        return s;
    }
}++;
// string type expressions
var ResultIsNumber11 = ++objA.a;
var ResultIsNumber12 = ++M.n;
var ResultIsNumber13 = ++STRING1[0];
var ResultIsNumber14 = ++foo();
var ResultIsNumber15 = ++A.foo();
var ResultIsNumber16 = ++(STRING + STRING);
var ResultIsNumber17 = objA.a++;
var ResultIsNumber18 = M.n++;
var ResultIsNumber19 = STRING1[0]++;
var ResultIsNumber20 = foo()++;
var ResultIsNumber21 = A.foo()++;
var ResultIsNumber22 = (STRING + STRING)++;
// miss assignment operators
++"";
++STRING;
++STRING1;
++STRING1[0];
++foo();
++objA.a;
++M.n;
++objA.a, M.n;
""++;
STRING++;
STRING1++;
STRING1[0]++;
foo()++;
objA.a++;
M.n++;
objA.a++, M.n++;
