开发者

Including modules, Is it right behavior?

开发者 https://www.devze.com 2023-04-13 09:49 出处:网络
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 a

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

精彩评论

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