Files
kotlin-fork/analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/suppression/conflictingOverloadsAtTopLevel2.kt
T
Marco Pennekamp 88d307d52c [AA] Add tests for diagnostics suppression on top-level declarations and class members
- `testConflictingOverloadsAtTopLevel` is currently disabled in FIR
  because it fails with a mismatch between diagnostics from the file and
  the individual elements. It will be enabled in the next commit.

^KT-62899
2023-11-13 10:20:26 +00:00

23 lines
434 B
Kotlin
Vendored

// IGNORE_FIR
// In FIR, there is currently a mismatch between the file's diagnostics and the individual elements' diagnostics, so we have to disable the
// FIR test. It will be fixed by KT-63221.
class SomeClass
fun someFun(): Int {
return 5
}
@Suppress("CONFLICTING_OVERLOADS")
fun someFun(): SomeClass {
return SomeClass()
}
@Suppress("CONFLICTING_OVERLOADS")
fun someFun() {
}
fun someFun(): String {
return ""
}