@@ -98,7 +98,7 @@ module CustomAttributes_AttributeUsage =
98
98
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_AttributeTargets01.fs" |]) >]
99
99
let ``E_AttributeTargets01_fs`` compilation =
100
100
compilation
101
- |> withLangVersionPreview
101
+ |> withLangVersion90
102
102
|> verifyCompile
103
103
|> shouldFail
104
104
|> withDiagnostics [
@@ -134,7 +134,7 @@ module CustomAttributes_AttributeUsage =
134
134
let ``E_AttributeTargetIsField01_fs`` compilation =
135
135
compilation
136
136
|> withOptions [ " --nowarn:25" ]
137
- |> withLangVersionPreview
137
+ |> withLangVersion90
138
138
|> verifyCompile
139
139
|> shouldFail
140
140
|> withDiagnostics [
@@ -187,7 +187,7 @@ module CustomAttributes_AttributeUsage =
187
187
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_AttributeTargetIsMethod02.fs" |]) >]
188
188
let ``E_AttributeTargetIsMethod02_fs`` compilation =
189
189
compilation
190
- |> withLangVersionPreview
190
+ |> withLangVersion90
191
191
|> withOptions [ " --nowarn:25" ]
192
192
|> verifyCompile
193
193
|> shouldFail
@@ -218,7 +218,7 @@ module CustomAttributes_AttributeUsage =
218
218
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_AttributeTargetIsMethod03.fs" |]) >]
219
219
let ``E_AttributeTargetIsMethod03_fs`` compilation =
220
220
compilation
221
- |> withLangVersionPreview
221
+ |> withLangVersion90
222
222
|> withOptions [ " --nowarn:25" ]
223
223
|> verifyCompile
224
224
|> shouldFail
@@ -336,7 +336,7 @@ module CustomAttributes_AttributeUsage =
336
336
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_AttributeTargetIsStruct.fs" |]) >]
337
337
let ``E_AttributeTargetIsStruct_fs`` compilation =
338
338
compilation
339
- |> withLangVersionPreview
339
+ |> withLangVersion90
340
340
|> verifyCompile
341
341
|> shouldFail
342
342
|> withDiagnostics [
@@ -366,7 +366,7 @@ module CustomAttributes_AttributeUsage =
366
366
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_AttributeTargetIsClass.fs" |]) >]
367
367
let ``E_AttributeTargetIsClass_fs`` compilation =
368
368
compilation
369
- |> withLangVersionPreview
369
+ |> withLangVersion90
370
370
|> verifyCompile
371
371
|> shouldFail
372
372
|> withDiagnostics [
@@ -387,7 +387,7 @@ module CustomAttributes_AttributeUsage =
387
387
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_AttributeTargetIsClass01.fs" |]) >]
388
388
let ``E_AttributeTargetIsClass01_fs`` compilation =
389
389
compilation
390
- |> withLangVersionPreview
390
+ |> withLangVersion90
391
391
|> verifyCompile
392
392
|> shouldFail
393
393
|> withDiagnostics [
@@ -485,7 +485,7 @@ module CustomAttributes_AttributeUsage =
485
485
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_AttributeTargetIsField03.fs" |]) >]
486
486
let ``E_AttributeTargetIsField03_fs`` compilation =
487
487
compilation
488
- |> withLangVersionPreview
488
+ |> withLangVersion90
489
489
|> verifyCompile
490
490
|> shouldFail
491
491
|> withDiagnostics [
@@ -505,7 +505,7 @@ module CustomAttributes_AttributeUsage =
505
505
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_AttributeTargetIsProperty01.fs" |]) >]
506
506
let ``E_AttributeTargetIsProperty01_fs`` compilation =
507
507
compilation
508
- |> withLangVersionPreview
508
+ |> withLangVersion90
509
509
|> verifyCompile
510
510
|> shouldFail
511
511
|> withDiagnostics [
@@ -525,7 +525,7 @@ module CustomAttributes_AttributeUsage =
525
525
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_AttributeTargetIsCtor01.fs" |]) >]
526
526
let ``E_AttributeTargetIsCtor01_fs`` compilation =
527
527
compilation
528
- |> withLangVersionPreview
528
+ |> withLangVersion90
529
529
|> verifyCompile
530
530
|> shouldFail
531
531
|> withDiagnostics [
@@ -562,7 +562,7 @@ module CustomAttributes_AttributeUsage =
562
562
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_AttributeTargetIsEnum01.fs" |]) >]
563
563
let ``E_AttributeTargetIsEnum01_fs`` compilation =
564
564
compilation
565
- |> withLangVersionPreview
565
+ |> withLangVersion90
566
566
|> verifyCompile
567
567
|> shouldFail
568
568
|> withDiagnostics [
@@ -599,7 +599,7 @@ module CustomAttributes_AttributeUsage =
599
599
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_AttributeTargetIsDelegate01.fs" |]) >]
600
600
let ``E_AttributeTargetsIsDelegate01_fs`` compilation =
601
601
compilation
602
- |> withLangVersionPreview
602
+ |> withLangVersion90
603
603
|> verifyCompile
604
604
|> shouldFail
605
605
|> withDiagnostics [
@@ -648,7 +648,7 @@ type InterruptibleLazy<'T> private (valueFactory: unit -> 'T) =
648
648
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_AttributeTargetIsInterface.fs" |]) >]
649
649
let ``E_AttributeTargetIsInterface_fs`` compilation =
650
650
compilation
651
- |> withLangVersionPreview
651
+ |> withLangVersion90
652
652
|> verifyCompile
653
653
|> shouldFail
654
654
|> withDiagnostics [
@@ -670,7 +670,7 @@ type InterruptibleLazy<'T> private (valueFactory: unit -> 'T) =
670
670
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_AttributeTargetIsClass02.fs" |]) >]
671
671
let ``E_AttributeTargetIsClass02_fs`` compilation =
672
672
compilation
673
- |> withLangVersionPreview
673
+ |> withLangVersion90
674
674
|> verifyCompile
675
675
|> shouldFail
676
676
|> withDiagnostics [
@@ -698,9 +698,9 @@ type InterruptibleLazy<'T> private (valueFactory: unit -> 'T) =
698
698
699
699
// SOURCE=CLIMutableAttribute01.fs # CLIMutableAttribute01.fs
700
700
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " CLIMutableAttribute01.fs" |]) >]
701
- let ``CLIMutableAttribute01 preview `` compilation =
701
+ let ``CLIMutableAttribute01 90 `` compilation =
702
702
compilation
703
- |> withLangVersionPreview
703
+ |> withLangVersion90
704
704
|> verifyCompile
705
705
|> shouldSucceed
706
706
@@ -724,9 +724,9 @@ type InterruptibleLazy<'T> private (valueFactory: unit -> 'T) =
724
724
725
725
// SOURCE=E_CLIMutableAttribute.fs # E_CLIMutableAttribute.fs
726
726
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_CLIMutableAttribute.fs" |]) >]
727
- let ``E_CLIMutableAttribute preview `` compilation =
727
+ let ``E_CLIMutableAttribute 90 `` compilation =
728
728
compilation
729
- |> withLangVersionPreview
729
+ |> withLangVersion90
730
730
|> verifyCompile
731
731
|> shouldFail
732
732
|> withDiagnostics [
@@ -761,9 +761,9 @@ type InterruptibleLazy<'T> private (valueFactory: unit -> 'T) =
761
761
762
762
// SOURCE=E_AllowNullLiteral.fs # E_AllowNullLiteral.fs
763
763
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_AllowNullLiteral.fs" |]) >]
764
- let ``E_AllowNullLiteral preview `` compilation =
764
+ let ``E_AllowNullLiteral 90 `` compilation =
765
765
compilation
766
- |> withLangVersionPreview
766
+ |> withLangVersion90
767
767
|> verifyCompile
768
768
|> shouldFail
769
769
|> withDiagnostics [
@@ -788,9 +788,9 @@ type InterruptibleLazy<'T> private (valueFactory: unit -> 'T) =
788
788
789
789
// SOURCE=AllowNullLiteral01.fs # AllowNullLiteral01.fs
790
790
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " AllowNullLiteral01.fs" |]) >]
791
- let ``AllowNullLiteral01 preview `` compilation =
791
+ let ``AllowNullLiteral01 90 `` compilation =
792
792
compilation
793
- |> withLangVersionPreview
793
+ |> withLangVersion90
794
794
|> verifyCompile
795
795
|> shouldSucceed
796
796
@@ -816,9 +816,9 @@ type InterruptibleLazy<'T> private (valueFactory: unit -> 'T) =
816
816
817
817
// SOURCE=E_VolatileField.fs # E_VolatileField.fs
818
818
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_VolatileField.fs" |]) >]
819
- let ``E_VolatileField preview `` compilation =
819
+ let ``E_VolatileField 90 `` compilation =
820
820
compilation
821
- |> withLangVersionPreview
821
+ |> withLangVersion90
822
822
|> verifyCompile
823
823
|> shouldFail
824
824
|> withDiagnostics [
@@ -844,9 +844,9 @@ type InterruptibleLazy<'T> private (valueFactory: unit -> 'T) =
844
844
845
845
// SOURCE=VolatileField01.fs # VolatileField01.fs
846
846
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " VolatileField01.fs" |]) >]
847
- let ``VolatileField01 preview `` compilation =
847
+ let ``VolatileField01 90 `` compilation =
848
848
compilation
849
- |> withLangVersionPreview
849
+ |> withLangVersion90
850
850
|> verifyCompile
851
851
|> shouldSucceed
852
852
@@ -865,9 +865,9 @@ type InterruptibleLazy<'T> private (valueFactory: unit -> 'T) =
865
865
866
866
// SOURCE=E_SealedAttribute01.fs # E_SealedAttribute01.fs
867
867
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_SealedAttribute01.fs" |]) >]
868
- let ``E_SealedAttribute01 preview `` compilation =
868
+ let ``E_SealedAttribute01 90 `` compilation =
869
869
compilation
870
- |> withLangVersionPreview
870
+ |> withLangVersion90
871
871
|> verifyCompile
872
872
|> shouldFail
873
873
|> withDiagnostics [
@@ -893,9 +893,9 @@ type InterruptibleLazy<'T> private (valueFactory: unit -> 'T) =
893
893
894
894
// SOURCE=E_StructLayout01.fs # E_StructLayout01.fs
895
895
[<Theory; Directory(__ SOURCE_ DIRECTORY__, Includes=[| " E_StructLayout01.fs" |]) >]
896
- let ``E_StructLayout01 preview `` compilation =
896
+ let ``E_StructLayout01 90 `` compilation =
897
897
compilation
898
- |> withLangVersionPreview
898
+ |> withLangVersion90
899
899
|> verifyCompile
900
900
|> shouldFail
901
901
|> withDiagnostics [
@@ -925,7 +925,7 @@ and [<ApplicationTenantJsonDerivedType>]
925
925
"""
926
926
927
927
[<InlineData( " 8.0" ) >]
928
- [<InlineData( " preview " ) >]
928
+ [<InlineData( " 9.0 " ) >]
929
929
[<Theory>]
930
930
let ``Regression for - F # 9 compiler cannot find constructor for attribute`` langVersion =
931
931
FSharp missingConstructorRepro
0 commit comments