Files
Vladislav.Koshkin bb358bc5a8 [kotlin] JoinDeclarationAndAssignmentInspection in k2
^KTIJ-21115 Fixed

GitOrigin-RevId: 89614afe5b87b7e01810e45a71dc11bd4ccedd5c
2023-11-28 12:23:49 +00:00

10 lines
319 B
Plaintext

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