You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix for 82 - Scope of types for named attribute values
Scope of types for named values in attributes improperly set as assembly where attribute is defined
fixesdotnet/fsharp#82closesdotnet/fsharp#568
commit a7e74c8cba301d39bb5b1d07f448dc4bcef88967
Author: latkin <latkin@microsoft.com>
Date: Thu Aug 13 16:55:32 2015 -0700
Add tests
commit 6c6cb0e0ebae07c1e55847e2ddbab72bdcffef54
Merge: d2a25c8 01dc508
Author: Don Syme <donsyme@fastmail.fm>
Date: Tue Aug 4 20:05:22 2015 +0100
update
commit d2a25c8db9c55d1ee0bd78c140355ccaa9130fee
Author: Don Syme <donsyme@fastmail.fm>
Date: Mon May 11 12:44:15 2015 +0100
updates to fix (3)
commit 1097c068a457585c1e303e788d6bbb792a71e32d
Author: Don Syme <donsyme@fastmail.fm>
Date: Mon May 11 12:42:43 2015 +0100
updates to fix (2)
commit 27c926891d1671edc6c174ee676eece370cbdc78
Author: Don Syme <donsyme@fastmail.fm>
Date: Mon May 11 12:40:47 2015 +0100
updates to fix
commit fb3a470b9ec90bc81f4c2289d0c0c7a6c7e3cebe
Author: Don Syme <donsyme@fastmail.fm>
Date: Mon May 11 12:36:13 2015 +0100
fix for 82
match TryDecodeILAttribute g g.attrib_ReflectedDefinitionAttribute.TypeRef (Some(g.attrib_ReflectedDefinitionAttribute.TypeRef.Scope))p.CustomAttrs with
1236
+
match TryDecodeILAttribute g g.attrib_ReflectedDefinitionAttribute.TypeRef p.CustomAttrs with
1237
1237
| Some ([ILAttribElem.Bool b ],_)-> ReflectedArgInfo.Quote b
1238
1238
| Some _-> ReflectedArgInfo.Quote false
1239
1239
|_-> ReflectedArgInfo.None
@@ -2558,7 +2558,7 @@ module AttributeChecking =
2558
2558
ignore f3
2559
2559
#endif
2560
2560
BindMethInfoAttributes m minfo
2561
-
(fun ilAttribs -> TryDecodeILAttribute g atref (Some(atref.Scope))ilAttribs |> Option.bind f1)
2561
+
(fun ilAttribs -> TryDecodeILAttribute g atref ilAttribs |> Option.bind f1)
2562
2562
(fun fsAttribs -> TryFindFSharpAttribute g attribSpec fsAttribs |> Option.bind f2)
2563
2563
#if EXTENSIONTYPING
2564
2564
(fun provAttribs ->
@@ -2591,7 +2591,7 @@ module AttributeChecking =
2591
2591
/// Check IL attributes for 'ObsoleteAttribute', returning errors and warnings as data
2592
2592
letprivateCheckILAttributes g cattrs m =
2593
2593
let(AttribInfo(tref,_))= g.attrib_SystemObsolete
2594
-
match TryDecodeILAttribute g tref (Some(tref.Scope))cattrs with
2594
+
match TryDecodeILAttribute g tref cattrs with
2595
2595
| Some ([ILAttribElem.String (Some msg)],_)->
2596
2596
WarnD(ObsoleteWarning(msg,m))
2597
2597
| Some ([ILAttribElem.String (Some msg); ILAttribElem.Bool isError ],_)->
@@ -2676,7 +2676,7 @@ module AttributeChecking =
2676
2676
/// Indicate if a list of IL attributes contains 'ObsoleteAttribute'. Used to suppress the item in intellisense.
2677
2677
letCheckILAttributesForUnseen g cattrs _m =
2678
2678
let(AttribInfo(tref,_))= g.attrib_SystemObsolete
2679
-
isSome (TryDecodeILAttribute g tref (Some(tref.Scope))cattrs)
2679
+
isSome (TryDecodeILAttribute g tref cattrs)
2680
2680
2681
2681
/// Checks the attributes for CompilerMessageAttribute, which has an IsHidden argument that allows
0 commit comments