Use error message for unary operators.

This commit is contained in:
chriseth
2022-04-04 16:53:36 +05:30
committed by nishant-sachdeva
parent 5f4c91cc6d
commit 755e043a6d
2 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -6,4 +6,4 @@ contract test {
}
}
// ----
// TypeError 4907: (97-99): Unary operator - cannot be applied to type uint256
// TypeError 4907: (97-99): Unary operator - cannot be applied to type uint256. Unary negation is only allowed for signed integers.