con*_*low 2 f# parsing compiler-errors compiler-bug
Microsoft(R)F#2.0 Interactive build 4.0.40219.1
我正在尝试定义新的记录类型:
type TestOptions =
{ perRunGC : bool;
collectGCStat : bool;
}
Run Code Online (Sandbox Code Playgroud)
一切都很好,但我们再添加一个字段:
type TestOptions =
{ perRunGC : bool;
collectGCStat : bool;
highPriority : bool;
} ^
Run Code Online (Sandbox Code Playgroud)
我在上面标记的位置得到解析器错误:
error FS0010: Unexpected character ' ' in field declaration
Run Code Online (Sandbox Code Playgroud)
我的代码出了什么问题?是编译器错误吗?