File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -15815,7 +15815,7 @@ namespace ts {
15815
15815
}
15816
15816
function isValidMethodAccess(method: Symbol, type: Type) {
15817
15817
const propType = getTypeOfFuncClassEnumModule(method);
15818
- const signatures = getSignaturesOfType(propType, SignatureKind.Call);
15818
+ const signatures = getSignaturesOfType(getNonNullableType( propType) , SignatureKind.Call);
15819
15819
Debug.assert(signatures.length !== 0);
15820
15820
return signatures.some(sig => {
15821
15821
const thisType = getThisTypeOfSignature(sig);
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+
3
+ // @strictNullChecks : true
4
+
5
+ ////declare const x: { m?(): void };
6
+ ////x./**/
7
+
8
+ verify . completionsAt ( "" , [ "m" ] ) ;
You can’t perform that action at this time.
0 commit comments