// Code generated by convertFourslash; DO NOT EDIT. // To modify this test, run "npm run makemanual goToImplementationInterface_07" package fourslash_test import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" "github.com/microsoft/typescript-go/internal/testutil" ) func TestGoToImplementationInterface_07(t *testing.T) { fourslash.SkipIfFailing(t) t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*interface_definition*/o { hello (): void; } interface Bar { hello (): void; } let x1: Foo = [|{ hello () { /**typeReference*/ } }|]; let x2: () => Foo = [|(() => { hello () { /**functionType*/} })|]; let x3: Foo | Bar = [|{ hello () { /**unionType*/} }|]; let x4: Foo & (Foo & Bar) = [|{ hello () { /**intersectionType*/} }|]; let x5: [Foo] = [|[{ hello () { /**tupleType*/} }]|]; let x6: (Foo) = [|{ hello () { /**parenthesizedType*/} }|]; let x7: (new() => Foo) = [|class { hello () { /**constructorType*/} }|]; let x8: Foo[] = [|[{ hello () { /**arrayType*/} }]|]; let x9: { y: Foo } = [|{ y: { hello () { /**typeLiteral*/} } }|]; let x10 = [|{|"parts": ["(","anonymous local class",")"], "kind": "local class"|}class implements Foo { hello() {} }|] let x11 = class [|{|"parts": ["(","local class",")"," ","C"], "kind": "local class"|}C|] implements Foo { hello() {} } // Should not do anything for type predicates function isFoo(a: any): a is Foo { return true; }` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) defer done() f.VerifyBaselineGoToImplementation(t, "interface_definition") }