Inline function: add extra tests taken from intellij-community
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
class AAA {
|
||||
fun fff(myProject: Project) {
|
||||
ensureFilesWritable(myProject, *Array(1) { "2" })
|
||||
}
|
||||
|
||||
private fun ensure<caret>FilesWritable(project: Project, vararg strings: String): Boolean {
|
||||
return !ensureFilesWritable(strings).hasReadonlyFiles()
|
||||
}
|
||||
|
||||
private fun ensureFilesWritable(strings: Array<out String>): Status {
|
||||
return Status(strings)
|
||||
}
|
||||
|
||||
inner class Status(strings: Array<out String>) {
|
||||
|
||||
fun hasReadonlyFiles(): Boolean {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
inner class Project
|
||||
}
|
||||
Reference in New Issue
Block a user