2015-01-30 23:57:51 +01:00
|
|
|
//// [symbolType6.ts]
|
|
|
|
var s = Symbol.for("add");
|
2015-02-05 04:18:54 +01:00
|
|
|
var a: any;
|
2015-01-30 23:57:51 +01:00
|
|
|
s + s;
|
|
|
|
s - s;
|
|
|
|
s + "";
|
2015-02-05 04:18:54 +01:00
|
|
|
s + a;
|
2015-01-30 23:57:51 +01:00
|
|
|
s + 0;
|
|
|
|
"" + s;
|
2015-02-05 04:18:54 +01:00
|
|
|
a + s;
|
2015-01-30 23:57:51 +01:00
|
|
|
0 + s;
|
|
|
|
s - 0;
|
2015-02-05 04:18:54 +01:00
|
|
|
0 - s;
|
|
|
|
|
|
|
|
(s || "") + "";
|
|
|
|
"" + (s || "");
|
2015-01-30 23:57:51 +01:00
|
|
|
|
|
|
|
//// [symbolType6.js]
|
|
|
|
var s = Symbol.for("add");
|
2015-02-05 04:18:54 +01:00
|
|
|
var a;
|
2015-01-30 23:57:51 +01:00
|
|
|
s + s;
|
|
|
|
s - s;
|
|
|
|
s + "";
|
2015-02-05 04:18:54 +01:00
|
|
|
s + a;
|
2015-01-30 23:57:51 +01:00
|
|
|
s + 0;
|
|
|
|
"" + s;
|
2015-02-05 04:18:54 +01:00
|
|
|
a + s;
|
2015-01-30 23:57:51 +01:00
|
|
|
0 + s;
|
|
|
|
s - 0;
|
|
|
|
0 - s;
|
2015-02-05 04:18:54 +01:00
|
|
|
(s || "") + "";
|
|
|
|
"" + (s || "");
|