45 lines
865 B
Go
45 lines
865 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual unusedClassInNamespace4"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestUnusedClassInNamespace4(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @strict: false
|
|
// @noUnusedLocals: true
|
|
// @noUnusedParameters:true
|
|
[| namespace Validation {
|
|
class c1 {
|
|
|
|
}
|
|
|
|
export class c2 {
|
|
|
|
}
|
|
|
|
class c3 {
|
|
public x: c1;
|
|
}
|
|
} |]`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyRangeAfterCodeFix(t, `namespace Validation {
|
|
class c1 {
|
|
|
|
}
|
|
|
|
export class c2 {
|
|
|
|
}
|
|
}`, false, 0, 0)
|
|
}
|