// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual semanticClassificationUninstantiatedModuleWithVariableOfSameName2"

package fourslash_test

import (
	"testing"

	"github.com/microsoft/typescript-go/internal/fourslash"
	"github.com/microsoft/typescript-go/internal/testutil"
)

func TestSemanticClassificationUninstantiatedModuleWithVariableOfSameName2(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `module /*0*/M {
    export interface /*1*/I {
    }
}

var /*2*/M = {
    foo: 10,
    bar: 20
}

var v: /*3*/M./*4*/I;

var x = /*5*/M;`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.VerifySemanticTokens(t, []fourslash.SemanticToken{
		{Type: "variable", Text: "M"},
		{Type: "interface.declaration", Text: "I"},
		{Type: "variable.declaration", Text: "M"},
		{Type: "property.declaration", Text: "foo"},
		{Type: "property.declaration", Text: "bar"},
		{Type: "variable.declaration", Text: "v"},
		{Type: "variable", Text: "M"},
		{Type: "interface", Text: "I"},
		{Type: "variable.declaration", Text: "x"},
		{Type: "variable", Text: "M"},
	})
}
