Files
Vladimir Dolzhenko 1734a04d83 [kotlin] Add after-warnings for intention test data
GitOrigin-RevId: 6124edbaebaf204f9e40b0f510ffc03209a46f6c
2021-09-22 16:12:45 +00:00

11 lines
305 B
Kotlin

// AFTER-WARNING: Parameter 's' is never used
// AFTER-WARNING: Variable 'hash' is never used
fun test(repo: Repository, commitMessage: String) {
val hash: String<caret>
repo.git("add --verbose .")
hash = repo.git("commit -m $commitMessage")
}
class Repository {
fun git(s: String) = ""
}