mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Adding test to ensure comment before block is conserved
This commit is contained in:
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*/{}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// asdf
|
||||
function f() {
|
||||
/*asdf*/{}
|
||||
}
|
||||
Reference in new issue
Block a user