vendor tsgo

This commit is contained in:
2026-07-09 16:50:43 -04:00
parent c06ea2e5a4
commit 98978e4930
5804 changed files with 1556156 additions and 101 deletions

View File

@@ -0,0 +1,33 @@
// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual genericWithSpecializedProperties3"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestGenericWithSpecializedProperties3(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `interface Foo<T, U> {
x: Foo<T, U>;
y: Foo<U, U>;
}
var f: Foo<number, string>;
var /*1*/xx = f.x;
var /*2*/yy = f.y;
var f2: Foo<string, number>;
var /*3*/x2 = f2.x;
var /*4*/y2 = f2.y;`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyQuickInfoAt(t, "1", "var xx: Foo<number, string>", "")
f.VerifyQuickInfoAt(t, "2", "var yy: Foo<string, string>", "")
f.VerifyQuickInfoAt(t, "3", "var x2: Foo<string, number>", "")
f.VerifyQuickInfoAt(t, "4", "var y2: Foo<number, number>", "")
}