TypeScript/tests/baselines/reference/commentOnBinaryOperator2.types
Yui d7fff8ebe9 [Master] fix 12985 emit leading and trailing comment around binary operator (#16584)
* Emit leading and trailing on binary operator

* Add tests and baselines

* Update baselines
2017-08-04 19:12:13 -07:00

30 lines
536 B
Plaintext

=== tests/cases/compiler/commentOnBinaryOperator2.ts ===
var a = 'some'
>a : string
>'some' // comment + 'text' : string
>'some' : "some"
// comment
+ 'text';
>'text' : "text"
var b = 'some'
>b : string
>'some' /* comment */ + 'text' : string
>'some' : "some"
/* comment */
+ 'text';
>'text' : "text"
var c = 'some'
>c : string
>'some' /* comment */ + /*comment1*/ 'text' : string
>'some' : "some"
/* comment */
+ /*comment1*/
'text';
>'text' : "text"