We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent71a3609 commit6e93cc0Copy full SHA for 6e93cc0
src/fsharp/NameResolution.fs
@@ -427,9 +427,12 @@ let private GetCSharpStyleIndexedExtensionMembersForTyconRef (amap:Import.Import
427
| firstTy::_->
428
match firstTywith
429
| ILType.Boxed tspec| ILType.Value tspec->
430
-lettcref=(tspec|> rescopeILTypeSpec scoref).TypeRef|> Import.ImportILTypeRef amap m
431
-if isCompiledTupleTyconRef g tcref|| tyconRefEq g tcref g.fastFunc_tcrthen None
432
-else Some tcref
+lettref=(tspec|> rescopeILTypeSpec scoref).TypeRef
+if Import.CanImportILTypeRef amap m trefthen
+lettcref= tref|> Import.ImportILTypeRef amap m
433
+if isCompiledTupleTyconRef g tcref|| tyconRefEq g tcref g.fastFunc_tcrthen None
434
+else Some tcref
435
+else None
436
|_-> None
437
438
|_->