Inline function: add extra tests taken from intellij-community
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
class AAA {
|
||||
fun fff(myProject: Project) {
|
||||
!ensureFilesWritable(Array(1) { "2" }).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