Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下类,它有一个方法methodA,我正在尝试调用(使用Reason):
class abstractProductA = { as self; pub methodA => "name"; }; abstractProductA#methodA;
编译器输出以下错误:
Unbound value abstractProductA
任何建议都会受到欢迎。谢谢你。
您需要创建该类的一个实例:
(new abstractProductA)#methodA;