diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-07 00:11:13 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-07 00:11:13 +0000 |
commit | c69bb8a7e737e09c667f9e343d0f1d3e4c13b8f7 (patch) | |
tree | d3d006919d15d6a26ff1a8091cf1e5341842c1aa /crates/ra_hir/src/ty/tests/data/struct.txt | |
parent | 3c945ceb5e0dc287139de0589cc9a4b285911f17 (diff) | |
parent | d618b1f2ce25db8817d1649d7ec7720594789067 (diff) |
Merge #446
446: Use HIR Expr for type inference r=flodiebold a=flodiebold
Now we can reuse the type inference inside a function when typing whitespace etc. :)
The order of the lines in the type tests changed a bit, which I'm not sure why, but there are no actual changes in the inference results.
Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/ty/tests/data/struct.txt')
-rw-r--r-- | crates/ra_hir/src/ty/tests/data/struct.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/tests/data/struct.txt b/crates/ra_hir/src/ty/tests/data/struct.txt new file mode 100644 index 000000000..7b324c82f --- /dev/null +++ b/crates/ra_hir/src/ty/tests/data/struct.txt | |||
@@ -0,0 +1,16 @@ | |||
1 | [72; 154) '{ ...a.c; }': () | ||
2 | [82; 83) 'c': [unknown] | ||
3 | [86; 87) 'C': [unknown] | ||
4 | [86; 90) 'C(1)': [unknown] | ||
5 | [88; 89) '1': [unknown] | ||
6 | [96; 97) 'B': [unknown] | ||
7 | [107; 108) 'a': A | ||
8 | [114; 133) 'A { b:...C(1) }': A | ||
9 | [121; 122) 'B': B | ||
10 | [127; 128) 'C': [unknown] | ||
11 | [127; 131) 'C(1)': C | ||
12 | [129; 130) '1': [unknown] | ||
13 | [139; 140) 'a': A | ||
14 | [139; 142) 'a.b': B | ||
15 | [148; 149) 'a': A | ||
16 | [148; 151) 'a.c': C | ||