Merge pull request #12828 from ethereum/errorForUnary

Use error message for unary operators.
This commit is contained in:
Kamil Śliwak
2022-04-04 17:13:28 +02:00
committed by GitHub
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.