添加GpuManaged属性时,VisualStudio显示错误
我得到Fody/Alea: TODO Transform: ILLabel
VS中的Fody/Alea: TODO Transform: ILLabel
错误,当尝试编译以下代码时:
static void Main(string[] args) { var gpu = Gpu.Default; gpu.For(0, 100, idx => Do(idx)); Console.ReadKey(); } [GpuManaged] public static void Do(int idx) { bool isTrue = false; bool one = true; bool two = true; for (int i = 0; i < 10; i++) { if (isTrue) { if (one) continue; isTrue = false; } else { if (two) continue; isTrue = true; } } }
只有在放置[GpuManaged]
属性时才能重现该问题。 另外我注意到如果你删除if (one) continue;
if (two) continue;
然后错误就消失了。 我如何解决它?
代码从我的实际解决方案中简化了很多,但这应该足以看到问题了。
- 赢10 x64
- alea 3.0.4
- alea.fody 3.0.4
- fsharp.core 4.3.4
- geforce GT 710