[FIR IDE] Add separate test data for descriptor-based Analysis API implementation

This commit is contained in:
Yan Zhulanow
2021-10-05 20:30:21 +09:00
committed by teamcityserver
parent 1272c6aa33
commit e06a75c197
18 changed files with 101 additions and 0 deletions
@@ -0,0 +1,16 @@
@Target(allowedTargets = NOT_CONST_EXPRESSION) annotation class base
@base annotation class derived
@base class correct {
constructor(x: Int)
@base constructor()
@base val x: Int
}
@base enum class My {
FIRST,
SECOND,
}
@base fun foo(@base y: @base Int): Int {
@base fun bar(@base z: @base Int): Int
@base val local: Int
}
@base val z: Int
@@ -0,0 +1,9 @@
interface Some
abstract class My<T : Some> {
abstract val x: T
abstract val y: My<Some>.T
abstract val z: My<Some>.T
abstract fun foo(arg: T)
abstract class Some : My<Some>.T
open inner class T
}
@@ -0,0 +1,3 @@
interface A
interface B
class C<T : A & B>