From 4fc233a02e8dc07619a969400c445ec47c2b1a9d Mon Sep 17 00:00:00 2001 From: Marcus Klaas de Vries Date: Sat, 5 Jan 2019 21:28:30 +0100 Subject: Implement type inference for boolean operators --- crates/ra_hir/src/ty/tests/data/0008_boolean_op.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 crates/ra_hir/src/ty/tests/data/0008_boolean_op.txt (limited to 'crates/ra_hir/src/ty/tests') diff --git a/crates/ra_hir/src/ty/tests/data/0008_boolean_op.txt b/crates/ra_hir/src/ty/tests/data/0008_boolean_op.txt new file mode 100644 index 000000000..cc07cdccb --- /dev/null +++ b/crates/ra_hir/src/ty/tests/data/0008_boolean_op.txt @@ -0,0 +1,10 @@ +[21; 22) 'x': bool +[68; 69) 'z': bool +[72; 78) 'x == y': bool +[45; 58) 'true || false': bool +[11; 125) '{ ... < 3 }': bool +[117; 123) '10 < 3': bool +[88; 89) 'h': bool +[41; 42) 'y': bool +[92; 110) 'CONST_...ONST_2': bool +[25; 31) 'a && b': bool -- cgit v1.2.3