aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_ide/src/hover.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/ra_ide/src/hover.rs b/crates/ra_ide/src/hover.rs
index 24f7eeed3..b2909bf38 100644
--- a/crates/ra_ide/src/hover.rs
+++ b/crates/ra_ide/src/hover.rs
@@ -505,6 +505,13 @@ fn func(foo: i32) { if true { <|>foo; }; }
505 } 505 }
506 506
507 #[test] 507 #[test]
508 fn hover_for_param_edge() {
509 let (analysis, position) = single_file_with_position("fn func(<|>foo: i32) {}");
510 let hover = analysis.hover(position).unwrap().unwrap();
511 assert_eq!(trim_markup_opt(hover.info.first()), Some("i32"));
512 }
513
514 #[test]
508 fn test_type_of_for_function() { 515 fn test_type_of_for_function() {
509 let (analysis, range) = single_file_with_range( 516 let (analysis, range) = single_file_with_range(
510 " 517 "