Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite532a14

Browse files
committed
fix bug exposed by tests (2)
1 parent12ea9f8 commite532a14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/fsharp/check.fs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ and CheckExprInContext (cenv:cenv) (env:env) expr (context:ByrefCallContext) =
490490
CheckInterfaceImpls cenv env basev iimpls;
491491
CheckTypePermitByrefs cenv m typ
492492
letinterfaces=
493-
[//yield! AllSuperTypesOfType cenv.g cenv.amap m AllowMultiIntfInstantiations.Yes typ
493+
[if isInterfaceTy cenv.g typthen
494+
yield typ//yield! AllSuperTypesOfType cenv.g cenv.amap m AllowMultiIntfInstantiations.Yes typ
494495
for(ty,_)in iimplsdo
495496
yield! AllSuperTypesOfType cenv.g cenv.amap m AllowMultiIntfInstantiations.Yes ty]
496497
|> List.filter(isInterfaceTy cenv.g)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp