-
-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly print prelude types when shadowed by an alias of a non-name…
…d type
- Loading branch information
1 parent
53aba14
commit 2faacfc
Showing
6 changed files
with
78 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...uage_server__tests__hover__hover_print_qualified_prelude_type_when_shadowed_by_alias.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
source: compiler-core/src/language_server/tests/hover.rs | ||
expression: "\ntype Result = #(Bool, String)\nconst ok = Ok(10)\n" | ||
--- | ||
type Result = #(Bool, String) | ||
const ok = Ok(10) | ||
▔▔▔▔▔▔▔↑ | ||
|
||
|
||
----- Hover content ----- | ||
Scalar( | ||
String( | ||
"```gleam\ngleam.Result(Int, a)\n```\n", | ||
), | ||
) |
15 changes: 15 additions & 0 deletions
15
...er__tests__hover__hover_print_qualified_prelude_type_when_shadowed_by_imported_alias.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
source: compiler-core/src/language_server/tests/hover.rs | ||
expression: "\nimport alias.{type Bool}\nconst value = True\n" | ||
--- | ||
import alias.{type Bool} | ||
const value = True | ||
▔▔▔▔▔▔↑▔▔▔▔ | ||
|
||
|
||
----- Hover content ----- | ||
Scalar( | ||
String( | ||
"```gleam\ngleam.Bool\n```\n", | ||
), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters