Updated tests.

This commit is contained in:
hrkrshnn 2021-09-14 17:36:18 +02:00
parent de01822999
commit 42c8310a63
3 changed files with 11 additions and 11 deletions

View File

@ -36,7 +36,7 @@ contract C {
// "outputs":
// [
// {
// "internalType": "user defined type MyAddress",
// "internalType": "user defined type C.MyAddress",
// "name": "",
// "type": "address"
// }
@ -64,7 +64,7 @@ contract C {
// "outputs":
// [
// {
// "internalType": "user defined type MyBytes32",
// "internalType": "user defined type C.MyBytes32",
// "name": "",
// "type": "bytes32"
// }
@ -92,7 +92,7 @@ contract C {
// "outputs":
// [
// {
// "internalType": "user defined type MyUInt8",
// "internalType": "user defined type C.MyUInt8",
// "name": "",
// "type": "uint8"
// }
@ -104,7 +104,7 @@ contract C {
// "inputs":
// [
// {
// "internalType": "user defined type MyAddress",
// "internalType": "user defined type C.MyAddress",
// "name": "a",
// "type": "address"
// }
@ -132,7 +132,7 @@ contract C {
// "inputs":
// [
// {
// "internalType": "user defined type MyBytes32",
// "internalType": "user defined type C.MyBytes32",
// "name": "a",
// "type": "bytes32"
// }
@ -160,7 +160,7 @@ contract C {
// "inputs":
// [
// {
// "internalType": "user defined type MyUInt8",
// "internalType": "user defined type C.MyUInt8",
// "name": "a",
// "type": "uint8"
// }

View File

@ -269,7 +269,7 @@
"typeDescriptions":
{
"typeIdentifier": "t_mapping$_t_userDefinedValueType$_MyAddress_$18_$_t_userDefinedValueType$_MyUInt_$20_$",
"typeString": "mapping(user defined type MyAddress => user defined type MyUInt)"
"typeString": "mapping(user defined type C.MyAddress => user defined type C.MyUInt)"
},
"typeName":
{
@ -291,7 +291,7 @@
"typeDescriptions":
{
"typeIdentifier": "t_userDefinedValueType$_MyAddress_$18",
"typeString": "user defined type MyAddress"
"typeString": "user defined type C.MyAddress"
}
},
"nodeType": "Mapping",
@ -299,7 +299,7 @@
"typeDescriptions":
{
"typeIdentifier": "t_mapping$_t_userDefinedValueType$_MyAddress_$18_$_t_userDefinedValueType$_MyUInt_$20_$",
"typeString": "mapping(user defined type MyAddress => user defined type MyUInt)"
"typeString": "mapping(user defined type C.MyAddress => user defined type C.MyUInt)"
},
"valueType":
{
@ -318,7 +318,7 @@
"typeDescriptions":
{
"typeIdentifier": "t_userDefinedValueType$_MyUInt_$20",
"typeString": "user defined type MyUInt"
"typeString": "user defined type C.MyUInt"
}
}
},

View File

@ -5,4 +5,4 @@ contract D
C.T x = L.T.wrap(uint(1));
}
// ----
// TypeError 7407: (86-103): Type user defined type T is not implicitly convertible to expected type user defined type T.
// TypeError 7407: (86-103): Type user defined type L.T is not implicitly convertible to expected type user defined type C.T.