File tree Expand file tree Collapse file tree 3 files changed +5
-71
lines changed
crates/elp/src/resources/test/eqwalizer_tests/check Expand file tree Collapse file tree 3 files changed +5
-71
lines changed Original file line number Diff line number Diff line change 1- error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types)
2- ┌─ check/src/pats.erl:21:17
3- │
4- 21 │ maps:get(a, M).
5- │ ^
6- │ │
7- │ M.
8- Expression has type: #{a => 'ok'} | 'error'
9- Context expected type: #{term() => term()}
10- │
11-
12- Because in the expression's type:
13- Here the type is a union type with some valid candidates: #{a => 'ok'}
14- However the following candidate: 'error'
15- Differs from the expected type: #{term() => term()}
16-
17- ------------------------------ Detailed message ------------------------------
18-
19- #{a => 'ok'} | 'error' is not compatible with #{term() => term()}
20- because
21- 'error' is not compatible with #{term() => term()}
22-
231error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types)
242 ┌─ check/src/pats.erl:26:17
253 │
@@ -29,7 +7,7 @@ error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types
297 │ M.
308Expression has type: #{a => 'ok'} | 'error'
319Context expected type: #{term() => term()}
32- │
10+ │
3311
3412Because in the expression's type:
3513 Here the type is a union type with some valid candidates: #{a => 'ok'}
@@ -42,4 +20,4 @@ Because in the expression's type:
4220 because
4321 'error' is not compatible with #{term() => term()}
4422
45- 2 ERRORS
23+ 1 ERROR
Original file line number Diff line number Diff line change 1- error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types)
2- ┌─ check/src/pats.erl:21:17
3- │
4- 21 │ maps:get(a, M).
5- │ ^
6- │ │
7- │ M.
8- Expression has type: #{a => 'ok'} | 'error'
9- Context expected type: #{term() => term()}
10- │
11-
12- Because in the expression's type:
13- Here the type is a union type with some valid candidates: #{a => 'ok'}
14- However the following candidate: 'error'
15- Differs from the expected type: #{term() => term()}
16-
17- ------------------------------ Detailed message ------------------------------
18-
19- #{a => 'ok'} | 'error' is not compatible with #{term() => term()}
20- because
21- 'error' is not compatible with #{term() => term()}
22-
231error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types)
242 ┌─ check/src/pats.erl:26:17
253 │
@@ -42,4 +20,4 @@ Because in the expression's type:
4220 because
4321 'error' is not compatible with #{term() => term()}
4422
45- 2 ERRORS
23+ 1 ERROR
Original file line number Diff line number Diff line change 1- error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types)
2- ┌─ check/src/pats.erl:21:17
3- │
4- 21 │ maps:get(a, M).
5- │ ^
6- │ │
7- │ M.
8- Expression has type: #{a => 'ok'} | 'error'
9- Context expected type: #{term() => term()}
10- │
11-
12- Because in the expression's type:
13- Here the type is a union type with some valid candidates: #{a => 'ok'}
14- However the following candidate: 'error'
15- Differs from the expected type: #{term() => term()}
16-
17- ------------------------------ Detailed message ------------------------------
18-
19- #{a => 'ok'} | 'error' is not compatible with #{term() => term()}
20- because
21- 'error' is not compatible with #{term() => term()}
22-
231error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types)
242 ┌─ check/src/pats.erl:26:17
253 │
@@ -29,7 +7,7 @@ error: incompatible_types (See https://fb.me/eqwalizer_errors#incompatible_types
297 │ M.
308Expression has type: #{a => 'ok'} | 'error'
319Context expected type: #{term() => term()}
32- │
10+ │
3311
3412Because in the expression's type:
3513 Here the type is a union type with some valid candidates: #{a => 'ok'}
@@ -42,4 +20,4 @@ Because in the expression's type:
4220 because
4321 'error' is not compatible with #{term() => term()}
4422
45- 2 ERRORS
23+ 1 ERROR
You can’t perform that action at this time.
0 commit comments