solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/159_storage_variable_initialization_with_incorrect_type_string.sol

6 lines
153 B
Solidity

contract c {
uint a = "abc";
}
// ----
// TypeError 7407: (26-31): Type literal_string "abc" is not implicitly convertible to expected type uint256.