我正在尝试阅读 F# Visual Studio Code 的入门文档显示错误
如果我将鼠标悬停在红色曲线上,我会看到错误消息
The Namespace or module ClassLibraryDemo is not defined"
这是 ClassLibaryDemo.fs 的代码
namespace ClassLibraryDemo
module PigLatin =
let toPigLatin (word: string) =
let isVowel (c: char) =
match c with
| 'a' | 'e' | 'i' |'o' |'u'
| 'A' | 'E' | 'I' | 'O' | 'U' -> true
|_ -> false
if isVowel word.[0] then
word + "yay"
else
word.[1..] + string(word.[0]) + "ay"