mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 00:21:32 +00:00
Fix a problem where deleting last import directive via "optimize imports" could lead to incorrect psi structure resulting in CCE, see EA-64291 New imports are inserted at the head (after package directive if present) of the file (before any comments) if no imports were present Add test for inserting import to file where a first statement is a comment Drop code dealing with non-existing import list in ImportInsertHelperImpl AbstractQuickFixTest: check for unexpected actions before changes to the file are made as it relies on the first line having specific format
14 lines
374 B
Plaintext
Vendored
14 lines
374 B
Plaintext
Vendored
import java.util.ArrayList
|
|
|
|
// "Create extension function 'set'" "true"
|
|
|
|
class Foo<T> {
|
|
fun <T> x (y: Any, w: java.util.ArrayList<T>) {
|
|
y["", w] = w
|
|
}
|
|
}
|
|
|
|
fun <T> Any.set(s: String, w: ArrayList<T>, value: ArrayList<T>) {
|
|
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
|
}
|