vendor tsgo
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual quickInfoDisplayPartsClassConstructor"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestQuickInfoDisplayPartsClassConstructor(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `class c {
|
||||
/*1*/constructor() {
|
||||
}
|
||||
}
|
||||
var /*2*/cInstance = new /*3*/c();
|
||||
var /*4*/cVal = /*5*/c;
|
||||
class cWithOverloads {
|
||||
/*6*/constructor(x: string);
|
||||
/*7*/constructor(x: number);
|
||||
/*8*/constructor(x: any) {
|
||||
}
|
||||
}
|
||||
var /*9*/cWithOverloadsInstance = new /*10*/cWithOverloads("hello");
|
||||
var /*11*/cWithOverloadsInstance2 = new /*12*/cWithOverloads(10);
|
||||
var /*13*/cWithOverloadsVal = /*14*/cWithOverloads;
|
||||
class cWithMultipleOverloads {
|
||||
/*15*/constructor(x: string);
|
||||
/*16*/constructor(x: number);
|
||||
/*17*/constructor(x: boolean);
|
||||
/*18*/constructor(x: any) {
|
||||
}
|
||||
}
|
||||
var /*19*/cWithMultipleOverloadsInstance = new /*20*/cWithMultipleOverloads("hello");
|
||||
var /*21*/cWithMultipleOverloadsInstance2 = new /*22*/cWithMultipleOverloads(10);
|
||||
var /*23*/cWithMultipleOverloadsInstance3 = new /*24*/cWithMultipleOverloads(true);
|
||||
var /*25*/cWithMultipleOverloadsVal = /*26*/cWithMultipleOverloads;`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyBaselineHover(t)
|
||||
}
|
||||
Reference in New Issue
Block a user