Last active
April 25, 2017 16:43
-
-
Save haf/bfb175800b45327bbbbdcaa3ec0ee073 to your computer and use it in GitHub Desktop.
Question about finding the name of the case?
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
type DU = | |
| ACaseName | |
| BThereCake | |
let magic (q: Quotation<_>): string = | |
// smallest F# code in here? | |
open Expecto | |
let subject = magic <@ ACaseName @> | |
Expect.equal subject "ACaseName" "Should extract the NAME of the DU case" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment