-
-
Notifications
You must be signed in to change notification settings - Fork 789
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd89992
commit d2e47de
Showing
4 changed files
with
49 additions
and
0 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
14 changes: 14 additions & 0 deletions
14
..._server/tests/snapshots/gleam_core__language_server__tests__completion__case_subject.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,14 @@ | ||
--- | ||
source: compiler-core/src/language_server/tests/completion.rs | ||
expression: "\npub fn main(something: Bool) {\n case so\n}\n" | ||
--- | ||
pub fn main(something: Bool) { | ||
case so| | ||
} | ||
|
||
|
||
----- After applying completion ----- | ||
|
||
pub fn main(something: Bool) { | ||
case something | ||
} |
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
...r-core/src/type_/tests/snapshots/gleam_core__type___tests__errors__missing_case_body.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/type_/tests/errors.rs | ||
expression: case True | ||
--- | ||
----- SOURCE CODE | ||
case True | ||
|
||
----- ERROR | ||
error: Missing case body | ||
┌─ /src/one/two.gleam:1:1 | ||
│ | ||
1 │ case True | ||
│ ^^^^^^^^^ | ||
|
||
This case expression is missing its body. |