Syntax test.

This commit is contained in:
chriseth 2021-08-17 19:54:09 +02:00
parent 5b9da8418d
commit a717146b00
5 changed files with 12 additions and 4 deletions

View File

@ -0,0 +1,10 @@
contract C {
function f() public pure returns (bytes memory) {
return abi.encode(
1.23,
1/3
);
}
}
// ----
// TypeError 8009: (124-127): Invalid rational number (too large or division by zero).

View File

@ -4,4 +4,3 @@ contract C {
}
}
// ----
// TypeError 6090: (92-95): Fractional numbers cannot yet be encoded.

View File

@ -5,4 +5,3 @@ contract C {
}
}
// ----
// TypeError 6090: (126-129): Fractional numbers cannot yet be encoded.

View File

@ -4,5 +4,5 @@ contract C {
}
}
// ----
// TypeError 6090: (98-101): Fractional numbers cannot yet be encoded.
// TypeError 7279: (98-101): Cannot perform packed encoding for a literal. Please convert it to an explicit type first.
// TypeError 7279: (103-104): Cannot perform packed encoding for a literal. Please convert it to an explicit type first.

View File

@ -5,5 +5,5 @@ contract C {
}
}
// ----
// TypeError 6090: (132-135): Fractional numbers cannot yet be encoded.
// TypeError 7279: (132-135): Cannot perform packed encoding for a literal. Please convert it to an explicit type first.
// TypeError 7279: (137-138): Cannot perform packed encoding for a literal. Please convert it to an explicit type first.