mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix missing trailing dot in error message
This commit is contained in:
parent
189983a1b8
commit
e411a502fd
@ -132,7 +132,7 @@ BoolResult fitsIntegerType(bigint const& _value, IntegerType const& _type)
|
||||
return BoolResult{std::string("Cannot implicitly convert signed literal to unsigned type.")};
|
||||
|
||||
if (_type.minValue() > _value || _value > _type.maxValue())
|
||||
return BoolResult{"Literal is too large to fit in " + _type.toString(false)};
|
||||
return BoolResult{"Literal is too large to fit in " + _type.toString(false) + "."};
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -6,4 +6,4 @@ contract Derived2 is Base {
|
||||
constructor() Base(2) public { }
|
||||
}
|
||||
// ----
|
||||
// TypeError: (74-77): Invalid type for argument in constructor call. Invalid implicit conversion from int_const 300 to uint8 requested. Literal is too large to fit in uint8
|
||||
// TypeError: (74-77): Invalid type for argument in constructor call. Invalid implicit conversion from int_const 300 to uint8 requested. Literal is too large to fit in uint8.
|
||||
|
@ -4,4 +4,4 @@ contract c {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (52-65): Type int_const 256 is not implicitly convertible to expected type uint8. Literal is too large to fit in uint8
|
||||
// TypeError: (52-65): Type int_const 256 is not implicitly convertible to expected type uint8. Literal is too large to fit in uint8.
|
||||
|
Loading…
Reference in New Issue
Block a user