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 parent12ea9f8 commite532a14Copy full SHA for e532a14
src/fsharp/check.fs
@@ -490,7 +490,8 @@ and CheckExprInContext (cenv:cenv) (env:env) expr (context:ByrefCallContext) =
490
CheckInterfaceImpls cenv env basev iimpls;
491
CheckTypePermitByrefs cenv m typ
492
letinterfaces=
493
-[//yield! AllSuperTypesOfType cenv.g cenv.amap m AllowMultiIntfInstantiations.Yes typ
+[if isInterfaceTy cenv.g typthen
494
+yield typ//yield! AllSuperTypesOfType cenv.g cenv.amap m AllowMultiIntfInstantiations.Yes typ
495
for(ty,_)in iimplsdo
496
yield! AllSuperTypesOfType cenv.g cenv.amap m AllowMultiIntfInstantiations.Yes ty]
497
|> List.filter(isInterfaceTy cenv.g)