Suggestion database wrongly reports reexported_in
for Constructor entries.
#7671
Unanswered
vitvakatu
asked this question in
Work In Progress - Engine
Replies: 1 comment 1 reply
-
You're right, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue
While working on #7468, I was asked to insert
Boolean.True
andBoolean.False
types in dropdowns without unnecessaryBoolean
prefixes. After further investigation, it proved to be impossible with the current suggestion database.Technically, we should be able to see that
Boolean.True
constructor is reexported by theStandard.Base
module and, as we havefrom Standard.Base import all
, neither importing nor fully qualified name is required. But the suggestion database has areexported_in
field set for the Type and all its Constructors. So we can't distinguish whether the Constructor was reexported or only its type was.Example
Boolean.True
is reexported to theStandard.Base
. It is shown in thereexported_in
field:Standard.Base.Data.Regression.Model.Logarithmic
:As you can see, we can't distinguish between
Boolean.True
andLogarithmic
, and therefore can't useTrue
without theBoolean
prefix.Beta Was this translation helpful? Give feedback.
All reactions