Skip to content

Commit 8b09bec

Browse files
TIHanbaronfel
authored andcommitted
Fixed consuming CSharp interface with an inref parameter (#8287)
* Added inref interop test * Fixed inref interop when creating a slot sig * 3.1 to 3.0
1 parent 4662a06 commit 8b09bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fsharp/infos.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ type MethInfo =
15361536
let formalRetTy = ImportReturnTypeFromMetadata amap m ilminfo.RawMetadata.Return.Type ilminfo.RawMetadata.Return.CustomAttrs ftinfo.ILScopeRef ftinfo.TypeInstOfRawMetadata formalMethTyparTys
15371537
let formalParams =
15381538
[ [ for p in ilminfo.RawMetadata.Parameters do
1539-
let paramType = ImportILTypeFromMetadata amap m ftinfo.ILScopeRef ftinfo.TypeInstOfRawMetadata formalMethTyparTys p.Type
1539+
let paramType = ImportILTypeFromMetadataWithAttributes amap m ftinfo.ILScopeRef ftinfo.TypeInstOfRawMetadata formalMethTyparTys p.Type p.CustomAttrs
15401540
yield TSlotParam(p.Name, paramType, p.IsIn, p.IsOut, p.IsOptional, []) ] ]
15411541
formalRetTy, formalParams
15421542
#if !NO_EXTENSIONTYPING

0 commit comments

Comments
 (0)