-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
Review some typeload code #11832
Review some typeload code #11832
Conversation
I found the problem thanks to @nadako's thorough documentation of who throws what. CI is green now (I think). My latest commit also adds a test that currently works on development, and in my opinion shouldn't. When trying to resolve I don't see why we should skip past that first @yuxiaomao Could you check if this change breaks anything for you guys? |
I've added two more tests:
|
Checked on Shiro's codebase, it doesn't seems to break anything except one case similar to what you described: |
Could you clarify that? The way you describe it sounds like there's |
There's a |
Ah, so it's about a module shadowing another module which would have a type. That's a slightly different case and I didn't explicitly consider it, but to me it looks like that should fail for the same reason. Thank you for checking! |
While looking at #4781 I've come across some confusing code in the typeloader that supports some sort of resuming for subtypes. This doesn't make much sense to me because our resolution usually picks the first thing it finds, so I started deleting some of it.
There are some failures currently but they seem very minor. I'd be interested to see if this messes up any code in the real world though.