1
我發現F#有些關於它的縮進警告不一致的,這裏的一些代碼,我最近寫的例子:不一致的縮進警告
// Weird: F# complains with FS0058 about d2dDevice here
use d2dContext = new SharpDX.Direct2D1.DeviceContext(
d2dDevice, SharpDX.Direct2D1.DeviceContextOptions.None)
// But not about d2dContext here
d2dContext.Target <- new Bitmap1(
d2dContext,
backBuffer,
BitmapProperties1(
PixelFormat(
SharpDX.DXGI.Format.B8G8R8A8_UNorm,
SharpDX.Direct2D1.AlphaMode.Premultiplied),
96.f, 96.f, BitmapOptions.Target ||| BitmapOptions.CannotDraw))
是否有一個合乎邏輯的理由,後者是正確的缺口,但不是前?