Analysis API: move reference resolve testsdata with errors to dedicated folders

This commit is contained in:
Ilya Kirillov
2022-01-26 10:56:43 +01:00
parent 1a2de65421
commit 4530041cbb
74 changed files with 335 additions and 465 deletions
@@ -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,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()
@@ -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
@@ -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,2 +1,2 @@
Resolved to:
0: T : kotlin.Int
0: T : A