Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

接口如此实现之后,会导致生成代码出错 #513

Closed
CodeMasterYi opened this issue Jan 2, 2019 · 4 comments
Closed

接口如此实现之后,会导致生成代码出错 #513

CodeMasterYi opened this issue Jan 2, 2019 · 4 comments

Comments

@CodeMasterYi
Copy link

CodeMasterYi commented Jan 2, 2019

public interface IFingerList : IEnumerable<Finger> {}

@CodeMasterYi
Copy link
Author

CodeMasterYi commented Jan 2, 2019

public interface IDictionary<TKey, TValue> : ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable

@CodeMasterYi
Copy link
Author

CodeMasterYi commented Jan 2, 2019

如上,这种继承自IEnumerable<T>这个接口的 均会生成错误代码,大概是因为IEnumerable<T>及其父接口IEnumerable中均有个GetEnumerator方法,然后Bridge中都去生成了对应代码的缘故(应该是没有考虑方法覆盖的情况吧) 不知是确实有这个问题还是配置什么可以避免这个问题?

@CodeMasterYi
Copy link
Author

又注意到v2.1.11的release note中的bug修复第五条如下描述:
interface桥接代码,interface继承时,父interface和子interface有同名不同类型属性时的生成代码报错
看上去似乎是类似的问题

@CodeMasterYi
Copy link
Author

是否在2.1.13的release版本基础上直接覆盖替换该文件就可以了~?

ZeroKill1024 pushed a commit to ZeroKill1024/xLua that referenced this issue Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant