You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Will create an expression with a TypePath that has pos as position.
This will be an issue in some (admittedly niche) cases where this expression ends up being loaded before the actual display type, because compiler will enter load_instance with that type path, and call display_type for foo.Bar if pos encloses the actual display position (which can happen when using positions like class position or field position for generated expressions, which should probably be avoided in the first place).
It seems this is not easy to fix, because setting pos to the TypePath here is wanted behavior for @:genericBuild at least.
The text was updated successfully, but these errors were encountered:
The following code:
Will create an expression with a
TypePath
that haspos
as position.This will be an issue in some (admittedly niche) cases where this expression ends up being loaded before the actual display type, because compiler will enter
load_instance
with that type path, and calldisplay_type
forfoo.Bar
ifpos
encloses the actual display position (which can happen when using positions like class position or field position for generated expressions, which should probably be avoided in the first place).It seems this is not easy to fix, because setting
pos
to theTypePath
here is wanted behavior for@:genericBuild
at least.The text was updated successfully, but these errors were encountered: