bri*_*ght 12 c# mono xamarin.ios dmcs
此代码在if(false)语句中使用2.10.8 dmcs以及MonoTouch导致内部编译器错误.这知道吗?(这可能是一个错误报告,但我可能会做一些蹩脚的事情.)
using System;
using System.Collections;
class X
{
static int Main()
{
foreach(var i in GetAll())
{
}
return 0;
}
static IEnumerable GetAll()
{
yield return 1;
if (false)
yield return 2;
}
}
Run Code Online (Sandbox Code Playgroud)