Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
GD0303:必須為 Variant 相容型別的型別參數之父符號未被正確處理
規則 ID |
GD0303 |
分類 |
用法 |
修正是否會破壞相容性 |
無法修正 |
預設啟用 |
是 |
原因
這是引擎的錯誤,請回報此問題。
規則說明
MustBeVariantAnalyzer 在你的原始碼中發現了未處理的情境。請於 GitHub 問題追蹤 回報,並附上簡要的重現專案,以便修正。
修正方式
此規則的違規情形無法自行修正。
什麼時候應該忽略警告
忽略此規則的警告可能導致不可預期的錯誤,因為分析器發現的這種情況可能需要你手動處理,以避免非 Variant 相容型別被傳遞到引擎。嘗試傳遞不相容型別將會造成執行階段錯誤。