-
Notifications
You must be signed in to change notification settings - Fork 772
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix PR suggestions and Add more testing
- Loading branch information
Edgar Gonzalez
committed
Jul 5, 2022
1 parent
ffb11a4
commit 811eac2
Showing
3 changed files
with
51 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
....Compiler.ComponentTests/Conformance/UnionTypes/E_LowercaseWhenRequireQualifiedAccess.fsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// #Conformance #TypesAndModules #Unions | ||
// This testcase verifies that lower-case discriminated union are not allowed | ||
//<Expects status="error"></Expects> | ||
#light | ||
|
||
type DU1 = | ``not.allowed`` | ||
|
||
type DU2 = ``not.allowed`` | ||
|
||
[<RequireQualifiedAccess>] | ||
type DU3 = | ``not.allowed`` | ||
|
||
[<RequireQualifiedAccess>] | ||
type DU4 = ``not.allowed`` | ||
|
||
type DU5 = | a | ||
|
||
type DU6 = a | ||
|
||
type du1 = du1 of string | ||
|
||
type du2 = | du2 of string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters