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
Copy file name to clipboardExpand all lines: tests/FSharp.Compiler.ComponentTests/Conformance/BasicGrammarElements/CustomAttributes/AttributeUsage/AttributeUsage.fs
+33Lines changed: 33 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -933,3 +933,36 @@ and [<ApplicationTenantJsonDerivedType>]
933
933
|> verifyCompile
934
934
|> shouldSucceed
935
935
#endif
936
+
937
+
[<Fact>]// Regression for https://github.com/dotnet/fsharp/issues/14304
938
+
let``Construct an object with default and params parameters using parameterless constructor`` ()=
939
+
Fsx """
940
+
open System
941
+
open System.Runtime.InteropServices
942
+
943
+
type DefaultAndParams([<Optional; DefaultParameterValue(1)>]x: int, [<ParamArray>] value: string[]) =
944
+
inherit Attribute()
945
+
946
+
type ParamsOnly([<ParamArray>] value: string[]) =
947
+
inherit Attribute()
948
+
949
+
type DefaultOnly([<Optional; DefaultParameterValue(1)>]x: int) =
0 commit comments