Files
kotlin-fork/plugins/kapt3/kapt3-compiler/testData/converter/errorLocationMapping.kt
T
Yan Zhulanow 5668a7af92 Kapt: Replace original Javac diagnostic messages with those with Kotlin location mapped
There is no Messages dialog in newer versions of IDEA/Android Studio in which the error messages were mapped before. The new Build window shows only the original locations, so now we need to replace Java file diagnostics with ones mapped to Kotlin source files.

The side effect is that diagnostics on the same locations are automatically merged.
2018-02-06 22:16:00 +03:00

38 lines
1.1 KiB
Kotlin
Vendored

// CORRECT_ERROR_TYPES
// EXPECTED_ERROR(kotlin:16:1) cannot find symbol
// EXPECTED_ERROR(kotlin:19:34) cannot find symbol
// EXPECTED_ERROR(kotlin:19:50) cannot find symbol
// EXPECTED_ERROR(kotlin:19:62) cannot find symbol
// EXPECTED_ERROR(kotlin:26:5) cannot find symbol
// EXPECTED_ERROR(kotlin:27:5) cannot find symbol
// EXPECTED_ERROR(kotlin:30:5) cannot find symbol
// EXPECTED_ERROR(kotlin:32:5) cannot find symbol
// EXPECTED_ERROR(kotlin:35:5) cannot find symbol
@file:Suppress("UNRESOLVED_REFERENCE", "ANNOTATION_PARAMETER_MUST_BE_CONST", "NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION")
import kotlin.reflect.KClass
@Anno(ABC::class)
class ErrorInAnnotation
class ErrorInConstructorParameter(val a: String, val b: ABC, val c: List<ABC>)
class ErrorInSupertype : ABC
class ErrorInSupertype2 : ABC<String>()
class ErrorInDeclarations {
lateinit var p1: String
lateinit var p2: ABC
lateinit var p3: BCD<String>
fun overloads(a: String) {}
fun overloads(a: ABC) {}
fun f1(a: String, b: ABC<List<String>>) {}
fun <T : String> f2() {}
fun <T : ABC> f3() {}
fun f4(): ABC? = null
}
annotation class Anno(val a: KClass<Any>)