compile-time error
常見例句
- You will have a compile-time error something like: "The nested type Person cannot hide an enclosing type".
否則將會(huì)導(dǎo)致一個(gè)編譯時(shí)間錯(cuò)誤,如 “該嵌套類型 Person 無法隱藏封閉類型”。 - Listing 2 shows a piece of code that results in a compile-time error because the copy constructor is private.
清單 2 顯示了産生編譯時(shí)錯(cuò)誤的代碼部分,因爲(wèi)該拷貝搆造函數(shù)是私有的。 - So if you misspelled "secret" in the above example, or tried to call a method on it that did not exist, you would get a compile-time error.
因此如果在上例中拼錯(cuò)了 “secret”,或嘗試調(diào)用根本不存在的方法,那麼將出現(xiàn)編譯時(shí)錯(cuò)誤。 返回 compile-time error