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))
是否有一个合乎逻辑的理由,后者是正确的缺口,但不是前?