Skip to content

Commit a269e11

Browse files
VLanvinmeta-codesync[bot]
authored andcommitted
Fix CI for OTP 28
Summary: Snapshot `callbacks3_neg` is also OTP version dependent, fix it. Reviewed By: michalmuskala Differential Revision: D85675523 fbshipit-source-id: dfabda187190b669ef509c967fe3723de25d2890
1 parent fec1192 commit a269e11

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error: incorrect_return_type_in_cb_implementation (See https://fb.me/eqwalizer_errors#incorrect_return_type_in_cb_implementation)
2+
┌─ check/src/callbacks3_neg.erl:12:1
3+
4+
12 │ -behavior(gen_server).
5+
│ ^^^^^^^^^^^^^^^^^^^^^
6+
│ │
7+
│ Incorrect return type for implementation of gen_server:handle_cast/2. Expected: {'noreply', term()} | {'noreply', term(), timeout() | 'hibernate' | {'continue', term()}} | {'stop', term(), term()}, Got: 'wrong_ret'.
8+
9+
10+
'wrong_ret' is not compatible with {'noreply', term()} | {'noreply', term(), timeout() | 'hibernate' | {'continue', term()}} | {'stop', term(), term()}
11+
because
12+
'wrong_ret' is not compatible with {'noreply', term()}
13+
14+
1 ERROR
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error: incorrect_return_type_in_cb_implementation (See https://fb.me/eqwalizer_errors#incorrect_return_type_in_cb_implementation)
2+
┌─ check/src/callbacks3_neg.erl:12:1
3+
4+
12 │ -behavior(gen_server).
5+
│ ^^^^^^^^^^^^^^^^^^^^^
6+
│ │
7+
│ Incorrect return type for implementation of gen_server:handle_cast/2. Expected: {'noreply', term()} | {'noreply', term(), gen_server:action()} | {'stop', term(), term()}, Got: 'wrong_ret'.
8+
9+
10+
'wrong_ret' is not compatible with {'noreply', term()} | {'noreply', term(), gen_server:action()} | {'stop', term(), term()}
11+
because
12+
'wrong_ret' is not compatible with {'noreply', term()}
13+
14+
1 ERROR

test_projects/eqwalizer_tests/check/src/callbacks3_neg.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
%%% This source code is licensed under the Apache 2.0 license found in
44
%%% the LICENSE file in the root directory of this source tree.
55

6-
-module(callbacks3_neg).
6+
-module(callbacks3_neg). % @OTPVersionDependent
77
-export([
88
init/1,
99
handle_call/3,

0 commit comments

Comments
 (0)