Fix missing trailing dot in error message

This commit is contained in:
Mathias Baumann 2019-03-11 16:01:20 +01:00
parent 189983a1b8
commit e411a502fd
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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.

View File

@ -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.