diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-25 20:36:56 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-25 20:36:56 +0000 |
commit | d0ddc5a7c1e3f3df09f4e3637cc80459d8273310 (patch) | |
tree | 551a026f63068eb9290f8e7c8f8d1a8b4322dd5d /crates/ra_hir/src/ty/snapshots | |
parent | d3b5ff8fe679b4e66e8af71db063b01d34fec3fc (diff) | |
parent | 5a1385007cb7509d50a77afa5a47ed0685f7f2f9 (diff) |
Merge #655
655: Fix type inference of binops on int/float variables r=matklad a=flodiebold
Fixes #651.
Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/ty/snapshots')
-rw-r--r-- | crates/ra_hir/src/ty/snapshots/tests__bug_651.snap | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/snapshots/tests__bug_651.snap b/crates/ra_hir/src/ty/snapshots/tests__bug_651.snap new file mode 100644 index 000000000..d23d3f139 --- /dev/null +++ b/crates/ra_hir/src/ty/snapshots/tests__bug_651.snap | |||
@@ -0,0 +1,13 @@ | |||
1 | --- | ||
2 | created: "2019-01-25T20:31:47.275112244+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: crates/ra_hir/src/ty/tests.rs | ||
6 | --- | ||
7 | [11; 41) '{ ...+ y; }': () | ||
8 | [21; 22) 'y': i32 | ||
9 | [25; 27) '92': i32 | ||
10 | [33; 34) '1': i32 | ||
11 | [33; 38) '1 + y': i32 | ||
12 | [37; 38) 'y': i32 | ||
13 | |||