29 lines
782 B
Go
29 lines
782 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual codeFixClassImplementInterfaceDuplicateMember1"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestCodeFixClassImplementInterfaceDuplicateMember1(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `interface I1 {
|
|
x: number;
|
|
}
|
|
interface I2 {
|
|
x: number;
|
|
}
|
|
|
|
class C implements I1,I2 {[| |]}`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyCodeFixAvailable(t, []string{"Implement interface 'I1'", "Implement interface 'I2'"})
|
|
}
|