[Analysis API] add diagnostic test for FP expose diagnostic from library

^KT-64468
^KT-62891
This commit is contained in:
Dmitrii Gridin
2023-12-21 17:24:44 +01:00
committed by Space Team
parent 282cd82539
commit 1ec994cd0d
6 changed files with 39 additions and 0 deletions
@@ -0,0 +1,16 @@
// IGNORE_FE10
// KT-64503
// MODULE: lib
// MODULE_KIND: LibraryBinary
// FILE: TestExposeTypeLib.kt
abstract class TestExposeTypeLib {
protected abstract fun returnProtectedClass(): ProtectedClass?
protected class ProtectedClass
}
// MODULE: main(lib)
// FILE: usage.kt
class Usage : TestExposeTypeLib() {
override fun returnProtectedClass(): ProtectedClass? = null
}
@@ -0,0 +1,4 @@
Diagnostics from elements:
for PSI element of type KtNamedFunction at (15,5-64)
EXPOSED_FUNCTION_RETURN_TYPE text ranges: [(103,123)]
PSI: KtNamedFunction at (15,5-64)