Analysis API: move reference resolve testsdata with errors to dedicated folders
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package testing
|
||||
|
||||
annotation class Annotation<T>(val clazz: Class<T>)
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
annotation class Annotation<T : Any>(val clazz: KClass<T>)
|
||||
class ATest
|
||||
|
||||
@[Annotation<<caret>ATest>(ATest::class)]
|
||||
|
||||
+3
-3
@@ -3,10 +3,10 @@ fun test(f: Foo) {
|
||||
}
|
||||
|
||||
interface Foo
|
||||
fun Foo.iterator(): Iterator = TODO()
|
||||
operator fun Foo.iterator(): Iterator = TODO()
|
||||
|
||||
interface Iterator
|
||||
|
||||
fun Iterator.next(): Any= TODO()
|
||||
fun Iterator.hasNext(): Boolean = TODO()
|
||||
operator fun Iterator.next(): Any= TODO()
|
||||
operator fun Iterator.hasNext(): Boolean = TODO()
|
||||
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
Resolved to:
|
||||
0: (in ROOT) fun Foo.iterator(): Iterator
|
||||
1: (in ROOT) fun Iterator.hasNext(): kotlin.Boolean
|
||||
2: (in ROOT) fun Iterator.next(): kotlin.Any
|
||||
0: (in ROOT) operator fun Foo.iterator(): Iterator
|
||||
1: (in ROOT) operator fun Iterator.hasNext(): kotlin.Boolean
|
||||
2: (in ROOT) operator fun Iterator.next(): kotlin.Any
|
||||
+3
-1
@@ -1 +1,3 @@
|
||||
fun <T> function(t: <caret>T) where T : Int, T : Sequence<Int> = TODO()
|
||||
fun <T, K> function(t: <caret>T): String where T : A, T : Sequence<Int> = TODO()
|
||||
|
||||
interface A
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
Resolved to:
|
||||
0: T : kotlin.Int
|
||||
0: T : A
|
||||
Reference in New Issue
Block a user