Skip to content

Commit 8662728

Browse files
committed
Fix for Observable attribute
Fix for #70
1 parent f1234ba commit 8662728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ProvidedTypes.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ module internal Misc =
134134
#else
135135
{ new CustomAttributeData() with
136136
#endif
137-
member __.Constructor = typeof<System.ObsoleteAttribute>.GetConstructors() |> Array.find (fun x -> x.GetParameters().Length = 1)
137+
member __.Constructor = typeof<System.ObsoleteAttribute>.GetConstructors() |> Array.find (fun x -> x.GetParameters().Length = 2)
138138
member __.ConstructorArguments = upcast [|CustomAttributeTypedArgument(typeof<string>, message) ; CustomAttributeTypedArgument(typeof<bool>, isError) |]
139139
member __.NamedArguments = upcast [| |] }
140140

0 commit comments

Comments
 (0)