How to create type which can be returned through another type implicitly in Swift?

后端 未结 0 380
感情败类
感情败类 2021-02-06 00:20

In C++ we can model a type like below,

struct Q{};
struct P{
     P(Q q){}
};
P fun(){return Q();} // implicitly call P(Q(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题