We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0d972b commit a3bd3a1Copy full SHA for a3bd3a1
checker/checker_test.go
@@ -499,6 +499,11 @@ cannot use float64 as type string in map key (1:4)
499
cannot use float64 as type int in map key (1:5)
500
| 1/2 in MapIntAny
501
| ....^
502
+
503
+repeat("0", 1/0)
504
+cannot use float64 as argument (type int) to call repeat (1:14)
505
+ | repeat("0", 1/0)
506
+ | .............^
507
`
508
509
func TestCheck_error(t *testing.T) {
checker/types.go
@@ -241,7 +241,7 @@ func isIntegerOrArithmeticOperation(node ast.Node) bool {
241
}
242
case *ast.BinaryNode:
243
switch n.Operator {
244
- case "+", "/", "-", "*":
+ case "+", "-", "*":
245
return true
246
247
0 commit comments