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
This is becuase opaque type T = Int is desugared to type T = T.T, and autocompletion targets T.T instead of Int. The reason is that the code meant for autocompletion is inferred based on the position of the cursor in the user input. This position is oblivious to the desugaring and other transformation done to the tree as part of the typecheck for code completion. See #6414 for some discussion.
The text was updated successfully, but these errors were encountered:
The completion did not work because the desugared version of the
opaque type's definition shared the span with its private definition
inside the companion object.
The completion did not work because the desugared version of the
opaque type's definition shared the span with its private definition
inside the companion object.
This is becuase
opaque type T = Int
is desugared totype T = T.T
, and autocompletion targetsT.T
instead ofInt
. The reason is that the code meant for autocompletion is inferred based on the position of the cursor in the user input. This position is oblivious to the desugaring and other transformation done to the tree as part of the typecheck for code completion. See #6414 for some discussion.The text was updated successfully, but these errors were encountered: