Files
kjol/tools/tsgo/internal/fourslash/tests/gen/quickinfoWrongComment_test.go
2026-07-09 16:50:43 -04:00

38 lines
983 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual quickinfoWrongComment"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestQuickinfoWrongComment(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @stableTypeOrdering: true
// @lib: es5
interface I {
/** The colour */
readonly colour: string
}
interface A extends I {
readonly colour: "red" | "green";
}
interface B extends I {
readonly colour: "yellow" | "green";
}
type F = A | B
const f: F = { colour: "green" }
f.colour/*1*/`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.MarkTestAsStradaServer()
f.GoToMarker(t, "1")
f.VerifyQuickInfoIs(t, "(property) colour: \"green\" | \"red\" | \"yellow\"", "The colour")
}