-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathuse-vector-for-exactmap-try1.error-output.txt
30 lines (30 loc) · 1.48 KB
/
use-vector-for-exactmap-try1.error-output.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use-vector-for-exactmap-try1.p4(17): [--Werror=type-error] error: c.e1
e1;
^^
---- Actual error:
use-vector-for-exactmap-try1.p4(11): Cannot unify type 'Vector<struct tuple_0>' with type 'Vector<tuple<bit<16>, bit<32>>>'
const_entries = [tuple<bit<16>,bit<32>>;
^
use-vector-for-exactmap-try1.p4(4)
ExactMap(int size, Vector<tuple<K,V>> const_entries, V default_value);
^^^^^^^^^^^^^^^^^^
---- Originating from:
use-vector-for-exactmap-try1.p4(11): Type of argument 'const_entries = VectorExpression' (Vector<struct tuple_0>) does not match type of parameter 'const_entries' (Vector<tuple<bit<16>, bit<32>>>)
const_entries = [tuple<bit<16>,bit<32>>;
^^^^^^^^^^^^^
use-vector-for-exactmap-try1.p4(11)
const_entries = [tuple<bit<16>,bit<32>>;
^
use-vector-for-exactmap-try1.p4(4)
ExactMap(int size, Vector<tuple<K,V>> const_entries, V default_value);
^^^^^^^^^^^^^
use-vector-for-exactmap-try1.p4(4)
ExactMap(int size, Vector<tuple<K,V>> const_entries, V default_value);
^^^^^^^^^^^^^^^^^^
---- Originating from:
use-vector-for-exactmap-try1.p4(17): Constructor invocation <Method call> does not match constructor declaration ExactMap
e1;
^^
use-vector-for-exactmap-try1.p4(4)
ExactMap(int size, Vector<tuple<K,V>> const_entries, V default_value);
^^^^^^^^