‘DebugConfig‘ only refers to a type, but is being used as a value here.
to is type value as Only but used
2023-09-14 09:02:55 时间
错误消息:
试图注入一个值,但实际上DebugConfig被定义成interface,只是一个类型:
将interface替换成abstract class后问题解决:
class声明了一个值,也声明了一种类型,你可以把Man赋值给一个变量,所以class是一种值,也可以说imgss是一个Man(类型),此时Man承担了一种类型的角色。
interface声明了一种类型,但是你不能把dogfood赋值给某个变量,否则你会得到一个报错``dogfood’ only refers to a type, but is being used as a value here`
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关文章
- ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon runn
- It is illegal to call this method if the current request is not in asynchron
- Connecting to a eXtremeDB「建议收藏」
- What is /dev/null and How to Use It
- 口播神器,基于Edge,微软TTS(text-to-speech)文字转语音免费开源库edge-tts语音合成实践(Python3.10)
- ORA-01366: failed to find redo logs required for terminal apply ORACLE 报错 故障修复 远程处理
- ORA-22907: invalid CAST to a type that is not a nested table or VARRAY ORACLE 报错 故障修复 远程处理
- ORA-26724: only SYS is allowed to set the Capture or Apply user to SYS. ORACLE 报错 故障修复 远程处理
- ORA-27167: Attempt to determine if Oracle binary image is stored on remote server failed ORACLE 报错 故障修复 远程处理
- ORA-39117: Type needed to create table is not included in this operation. Failing sql is: string ORACLE 报错 故障修复 远程处理
- ORA-39779: type “string”.”string” not found or conversion to latest version is not possible ORACLE 报错 故障修复 远程处理
- ORA-54525: incorrect box volume due to wrong ordinates ORACLE 报错 故障修复 远程处理
- ORA-00821: Specified value of sga_target stringM is too small, needs to be at least stringM ORACLE 报错 故障修复 远程处理
- ORA-01342: LogMiner can not resume session due to inability of staging checkpointed data ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-010657; Symbol: ER_NDB_BINLOG_CANT_WRITE_TO_NDB_BINLOG_INDEX; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-10921: Cannot drop tablespace belonging to default temporary tablespace group ORACLE 报错 故障修复 远程处理
- ORA-16427: Redo gap is too large to resolve. ORACLE 报错 故障修复 远程处理