Merge branch 'master' into ElliotM-for-loop-indices
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
target(AnnotationTarget.EXPRESSION)
|
||||
annotation class ann
|
||||
|
||||
fun foo(): Int = <caret>@ann 1
|
||||
@@ -1,3 +1,4 @@
|
||||
target(AnnotationTarget.EXPRESSION)
|
||||
annotation class ann
|
||||
|
||||
fun foo(): Int {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
fun foo(c: kotlin.support.AbstractIterator<kotlin.concurrent.FunctionalList<Int>>) {
|
||||
fun foo(c: kotlin.support.AbstractIterator<kotlin.properties.ObservableProperty<Int>>) {
|
||||
ba<caret>r(c)
|
||||
}
|
||||
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
import kotlin.concurrent.FunctionalList
|
||||
import kotlin.properties.ObservableProperty
|
||||
import kotlin.support.AbstractIterator
|
||||
|
||||
fun foo(c: kotlin.support.AbstractIterator<kotlin.concurrent.FunctionalList<Int>>) {
|
||||
bar<AbstractIterator<FunctionalList<Int>>>(c)
|
||||
fun foo(c: kotlin.support.AbstractIterator<kotlin.properties.ObservableProperty<Int>>) {
|
||||
bar<AbstractIterator<ObservableProperty<Int>>>(c)
|
||||
}
|
||||
|
||||
fun <T> bar(t: T): T = t
|
||||
|
||||
Vendored
+1
-1
@@ -4,5 +4,5 @@ public class TestingUse {
|
||||
}
|
||||
|
||||
fun main() {
|
||||
val funcInfunc = TestingUse().test6({ f -> f(5) > 20}, {x -> x + 2})
|
||||
val funcInfunc = TestingUse().test6({ f -> f(5) > 20}, { x -> x + 2})
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,5 +4,5 @@ public class TestingUse {
|
||||
}
|
||||
|
||||
fun main() {
|
||||
val funcInfunc = TestingUse().test6({ f: (Int) -> Int -> f(5) > 20}, {x -> x + 2})
|
||||
val funcInfunc = TestingUse().test6({ f: (Int) -> Int -> f(5) > 20}, { x -> x + 2})
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import java.util.HashMap
|
||||
|
||||
fun foo(map : HashMap<String, Int>) {
|
||||
for (entry: MutableMap.MutableEntry<String, Int>?<caret> in map.entrySet()) {
|
||||
for (entry: MutableMap.MutableEntry<String, Int><caret> in map.entrySet()) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.intentions.UsePropertyAccessSyntaxIntention
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
import java.io.File
|
||||
|
||||
class MyFile : File("file")
|
||||
|
||||
fun foo(file: MyFile) {
|
||||
file.getAbsolutePath()<caret>
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
import java.io.File
|
||||
|
||||
class MyFile : File("file")
|
||||
|
||||
fun foo(file: MyFile) {
|
||||
file.absolutePath<caret>
|
||||
}
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
import java.io.File
|
||||
|
||||
class MyFile : File("file") {
|
||||
override fun getCanonicalFile(): File {
|
||||
return super.getCanonicalFile()
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(file: MyFile) {
|
||||
file.getCanonicalFile()<caret>
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// WITH_RUNTIME
|
||||
import java.io.File
|
||||
|
||||
class MyFile : File("file") {
|
||||
override fun getCanonicalFile(): File {
|
||||
return super.getCanonicalFile()
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(file: MyFile) {
|
||||
file.canonicalFile<caret>
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
// IS_APPLICABLE: false
|
||||
import java.io.File
|
||||
|
||||
fun File.foo(absolutePath: String) {
|
||||
getAbsolutePath()<caret>
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
// IS_APPLICABLE: false
|
||||
import java.io.File
|
||||
|
||||
val File.absolutePath: String get() = ""
|
||||
|
||||
fun foo(file: File) {
|
||||
file.getAbsolutePath()<caret>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(klass: Class<*>) {
|
||||
klass.getEnclosingClass()<caret>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(klass: Class<*>) {
|
||||
klass.enclosingClass<caret>
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
import java.io.File
|
||||
|
||||
fun foo(file: File) {
|
||||
file.getAbsolutePath()<caret>
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
import java.io.File
|
||||
|
||||
fun foo(file: File) {
|
||||
file.absolutePath<caret>
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
import java.io.File
|
||||
|
||||
fun File.foo() {
|
||||
getAbsolutePath()<caret>
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
import java.io.File
|
||||
|
||||
fun File.foo() {
|
||||
absolutePath<caret>
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
import java.io.File
|
||||
|
||||
fun foo(file: File?) {
|
||||
file?.getAbsolutePath()<caret>
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
import java.io.File
|
||||
|
||||
fun foo(file: File?) {
|
||||
file?.absolutePath<caret>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(thread: Thread) {
|
||||
thread.<caret>isDaemon()
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(thread: Thread) {
|
||||
thread.<caret>isDaemon
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(thread: Thread) {
|
||||
thread.<caret>setDaemon(true)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(thread: Thread) {
|
||||
thread.<caret>isDaemon = true
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(thread: Thread) {
|
||||
thread.setName("name")<caret>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(thread: Thread) {
|
||||
thread.name = "name"<caret>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun Thread.foo() {
|
||||
setName("name")<caret>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun Thread.foo() {
|
||||
name = "name"<caret>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(thread: Thread?) {
|
||||
thread?.setName("name")<caret>
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun foo(thread: Thread?) {
|
||||
thread?.name = "name"<caret>
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
import java.io.File
|
||||
|
||||
fun foo(o: Any) {
|
||||
if (o is File) {
|
||||
o.getAbsolutePath()<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
import java.io.File
|
||||
|
||||
fun foo(o: Any) {
|
||||
if (o is File) {
|
||||
o.absolutePath<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
// IS_APPLICABLE: false
|
||||
import java.io.File
|
||||
|
||||
class MyFile : File("file") {
|
||||
override fun getCanonicalFile(): File {
|
||||
return super.getCanonicalFile()<caret>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user