diff --git a/snippets/fsharp/compiler-messages/fs0009.fs b/snippets/fsharp/compiler-messages/fs0009.fs new file mode 100644 index 00000000000..8716046e99f --- /dev/null +++ b/snippets/fsharp/compiler-messages/fs0009.fs @@ -0,0 +1,16 @@ +(* use of unverifiable function *) +let n: nativeptr = NativeInterop.NativePtr.stackalloc 1 + +(* use of the fixed expression *) +type R = { Address: int } + +let useFixed (r: R) = + use f = fixed &r.Address + () + +(* use of LayoutKind.Explicit *) +open System.Runtime.InteropServices + +[] +type EmptyStruct = + struct end