diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2021-12-10 00:12:53 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2021-12-10 00:12:53 +0100 |
| commit | 021328892b6d488ef81b98b4d42cda230bde2e44 (patch) | |
| tree | 7918d1d08641f2236445aa8b038f199075b93330 /tests | |
| parent | d62becfcbc03ac303620d9bb9044042e899459dd (diff) | |
fixes
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 97f9b90..d738231 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -20,4 +20,22 @@ ast_hover_default_intialized_parameter :: proc(t: ^testing.T) { }; test.expect_hover(t, &source, "test.a: bool"); +} + +@(test) +ast_hover_default_parameter_enum :: proc(t: ^testing.T) { + + source := test.Source { + main = `package test + procedure :: proc(called_from: Expr_Called_Type = .None, options := List_Options{}) { + } + + main :: proc() { + procedure* + } + `, + packages = {}, + }; + + test.expect_hover(t, &source, "test.procedure: proc(called_from: Expr_Called_Type = .None, options := List_Options{})"); }
\ No newline at end of file |