Merge pull request #6240 from ethereum/fix-error

Fix missing trailing dot in error message
This commit is contained in:
chriseth 2019-03-11 17:03:55 +01:00 committed by GitHub
commit e2776329ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.