@@ -762,8 +762,8 @@ module Helpers =
762
762
atts
763
763
|> Seq.tryPick ( fun att ->
764
764
match ( nonAbbreviatedDefinition att.AttributeType) .TryFullName with
765
- | Some fullName' ->
766
- if fullName = fullName' then
765
+ | Some fullName2 ->
766
+ if fullName = fullName2 then
767
767
Some att
768
768
else
769
769
None
@@ -932,13 +932,13 @@ module Helpers =
932
932
}
933
933
934
934
/// Test if the name corresponds to this interface or anyone in its hierarchy
935
- let rec testInterfaceHierarchy interfaceFullname interfaceType =
935
+ let rec testInterfaceHierarchy interfaceFullName interfaceType =
936
936
match tryDefinition interfaceType with
937
- | Some( e, Some fullname2 ) ->
938
- if interfaceFullname = fullname2 then
937
+ | Some( e, Some fullName ) ->
938
+ if interfaceFullName = fullName then
939
939
true
940
940
else
941
- e.DeclaredInterfaces |> Seq.exists ( testInterfaceHierarchy interfaceFullname )
941
+ e.DeclaredInterfaces |> Seq.exists ( testInterfaceHierarchy interfaceFullName )
942
942
| _ -> false
943
943
944
944
let hasParamArray ( memb : FSharpMemberOrFunctionOrValue ) =
@@ -1111,7 +1111,7 @@ module Patterns =
1111
1111
| Let((_, value, _), // Coercion to seq
1112
1112
Let((_, Call( None, meth, _, [], []), _), TryFinally( WhileLoop(_, Let(( ident, _, _), body), _), _, _, _)))
1113
1113
| Let((_, Call( Some value, meth, _, [], []), _), TryFinally( WhileLoop(_, Let(( ident, _, _), body), _), _, _, _)) when
1114
- // Using only the compiled name is riskier but with the fullname we miss some cases
1114
+ // Using only the compiled name is riskier but with the fullName we miss some cases
1115
1115
// TODO: Check the return type of meth is or implements IEnumerator
1116
1116
meth.CompiledName = " GetEnumerator"
1117
1117
->
@@ -1432,11 +1432,11 @@ module TypeHelpers =
1432
1432
let private getMeasureFullName ( genArgs : IList < FSharpType >) =
1433
1433
if genArgs.Count > 0 then
1434
1434
// TODO: Check it's effectively measure?
1435
- // TODO: Raise error if we cannot get the measure fullname ?
1435
+ // TODO: Raise error if we cannot get the measure fullName ?
1436
1436
match tryDefinition genArgs[ 0 ] with
1437
- | Some(_, Some fullname ) ->
1437
+ | Some(_, Some fullName ) ->
1438
1438
// Not sure why, but when precompiling F# changes measure types to MeasureProduct<'M, MeasureOne>
1439
- match fullname with
1439
+ match fullName with
1440
1440
| Types.measureProduct2 ->
1441
1441
match
1442
1442
( nonAbbreviatedType genArgs[ 0 ]) .GenericArguments
@@ -1445,8 +1445,8 @@ module TypeHelpers =
1445
1445
with
1446
1446
// TODO: generalize it to support aggregate units such as <m/s> or more complex
1447
1447
| [ Some measure; Some Types.measureOne ] -> measure
1448
- | _ -> fullname
1449
- | _ -> fullname
1448
+ | _ -> fullName
1449
+ | _ -> fullName
1450
1450
| _ -> Naming.unknown
1451
1451
else
1452
1452
Naming.unknown
@@ -2289,7 +2289,7 @@ module Util =
2289
2289
| _ -> not ( isGlobalOrImportedFSharpEntity ent || isAttachMembersEntity com ent)
2290
2290
2291
2291
let getMangledAbstractMemberName ( ent : FSharpEntity ) memberName overloadHash =
2292
- // TODO: Error if entity doesn't have fullname ?
2292
+ // TODO: Error if entity doesn't have fullName ?
2293
2293
let entityName = defaultArg ent.TryFullName " "
2294
2294
entityName + " ." + memberName + overloadHash
2295
2295
@@ -2756,11 +2756,12 @@ module Util =
2756
2756
2757
2757
| _ ->
2758
2758
// If member looks like a value but behaves like a function (has generic args) the type from F# AST is wrong (#2045).
2759
- let typ = makeType ctx.GenericArgs memb.ReturnParameter.Type
2759
+ let typ = makeType ctx.GenericArgs memb.FullType
2760
+ let retTyp = makeType ctx.GenericArgs memb.ReturnParameter.Type
2760
2761
2761
2762
let callExpr =
2762
- memberIdent com r Fable.Any memb membRef
2763
- |> makeCall r typ { callInfo with Tags = " value" :: callInfo.Tags }
2763
+ memberIdent com r typ memb membRef
2764
+ |> makeCall r retTyp { callInfo with Tags = " value" :: callInfo.Tags }
2764
2765
2765
2766
let fableMember = FsMemberFunctionOrValue( memb)
2766
2767
// TODO: Move plugin application to FableTransforms
0 commit comments