30 lines
925 B
Go
30 lines
925 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual fixExactOptionalUnassignableProperties7"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestFixExactOptionalUnassignableProperties7(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @strictNullChecks: true
|
|
// @exactOptionalPropertyTypes: true
|
|
// @Filename: fixExactOptionalUnassignableProperties6.ts
|
|
class Feh {
|
|
_requestFinished(error?: string) {
|
|
this._finishedPromiseCallback({ error/**/ });
|
|
}
|
|
private _finishedPromiseCallback: (arg: { error?: string }) => void = () => {};
|
|
}`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyCodeFixNotAvailable(t)
|
|
}
|