We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95180ae commit 15ec291Copy full SHA for 15ec291
tests/FSharp.Compiler.ComponentTests/Conformance/Types/RecordTypes/AnonymousRecords.fs
@@ -19,6 +19,23 @@ module AnonRecd =
19
|> shouldFail
20
|> withErrorCode 3522
21
|> withMessage "The field 'A' appears multiple times in this record expression."
22
+
23
+ [<Fact>]
24
+ let ``Anonymous Record with unit of measures`` () =
25
+ FSharp """
26
+namespace FSharpTest
27
28
+[<Measure>]
29
+type m
30
31
+module AnonRecd =
32
+ let a = {|a=1<m>|}
33
+ let b = {|a=1<m>; b=2<m>|}
34
+ let c = {|a=1<m> |}
35
+ let d = {| a=1<m>; b=2<m>; c=3<m> |}
36
+"""
37
+ |> compile
38
+ |> shouldSucceed
39
40
[<Fact>]
41
let ``Anonymous Record missing single field`` () =
0 commit comments