Adding test to ensure comment before block is conserved

This commit is contained in:
Cyrus Najmabadi 2015-03-04 13:13:54 -08:00
parent e225999ac4
commit 4dfed9c84c
3 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,11 @@
//// [commentOnBlock1.ts]
// asdf
function f() {
/*asdf*/{}
}
//// [commentOnBlock1.js]
// asdf
function f() {
/*asdf*/ { }
}

View file

@ -0,0 +1,7 @@
=== tests/cases/compiler/commentOnBlock1.ts ===
// asdf
function f() {
>f : () => void
/*asdf*/{}
}

View file

@ -0,0 +1,4 @@
// asdf
function f() {
/*asdf*/{}
}