开发者

Including modules, Is it right behavior?

First case code Second case code I was expecting to all methods from modules be included in both cases. Is it 开发者_StackOverflowbug?


Expected behavior. In the first example you are including B in A after you included it in C, so A doesn't have Bs method when it gets included. In the second example you do it in the correct order.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜