isImplicitlyConvertibleTo(): Add better error messages

This commit is contained in:
Mathias Baumann
2019-03-11 13:38:02 +01:00
parent dce8469534
commit d70cb375cf
6 changed files with 28 additions and 5 deletions
@@ -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.
// 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