Boolean literal arguments: check previous arg, fix all args in a row

This commit is contained in:
Mikhail Glukhikh
2018-12-03 10:00:55 +03:00
parent 235b50d86e
commit 13b09f532c
11 changed files with 129 additions and 34 deletions
@@ -0,0 +1,7 @@
// HIGHLIGHT: GENERIC_ERROR_OR_WARNING
// FIX: Add names to boolean arguments
fun foo(a: Boolean, b: Boolean, c: Boolean) {}
fun test() {
foo(true, <caret>true, c = true)
}