Adding test to ensure comment before block is conserved

This commit is contained in:
Cyrus Najmabadi committed 2015-03-04 13:13:54 -08:00
1 parent e225999ac4
commit 4dfed9c84c
3 files changed
+22

No files matched your search

@@ -0,0 +1,11 @@
//// [commentOnBlock1.ts]
// asdf
function f() {
/*asdf*/{}
}
//// [commentOnBlock1.js]
// asdf
function f() {
/*asdf*/ { }
}
@@ -0,0 +1,7 @@
=== tests/cases/compiler/commentOnBlock1.ts ===
// asdf
function f() {
>f : () => void
/*asdf*/{}
}
+4
View File
@@ -0,0 +1,4 @@
// asdf
function f() {
/*asdf*/{}
}