-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
inference: follow #40985, special case _typeof_captured_variable
#43965
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -588,7 +588,7 @@ isdispatchtuple(@nospecialize(t)) = (@_pure_meta; isa(t, DataType) && (t.flags & | |||
|
|||
iskindtype(@nospecialize t) = (t === DataType || t === UnionAll || t === Union || t === typeof(Bottom)) | |||
isconcretedispatch(@nospecialize t) = isconcretetype(t) && !iskindtype(t) | |||
using Core: has_free_typevars | |||
import Core: has_free_typevars |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason for this change? has_free_typevars
should not be overloadable anyways, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, that's just because I'm almost always using import
just because of #36529.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, makes sense
skip type capturing in Core.Compiler Use Base.C_NULL rename to `_typeof_captured_variable` Use `_typeof_captured_variable = Core.Typeof` fix case of captured types with free typevars make `has_free_typevars` a builtin and add inference support fix tests add some more tests some more inference fixes inference: follow #40985, special case `_typeof_captured_variable` (#43965) * Revert "make `has_free_typevars` a builtin" This reverts commit 3d0bffc. * inference: follow #40985, special case `_typeof_captured_variable` Update base/reflection.jl
skip type capturing in Core.Compiler Use Base.C_NULL rename to `_typeof_captured_variable` Use `_typeof_captured_variable = Core.Typeof` fix case of captured types with free typevars make `has_free_typevars` a builtin and add inference support fix tests add some more tests some more inference fixes inference: follow #40985, special case `_typeof_captured_variable` (#43965) * Revert "make `has_free_typevars` a builtin" This reverts commit 3d0bffc. * inference: follow #40985, special case `_typeof_captured_variable` Update base/reflection.jl
/cc @simeonschaub