Files
kotlin-fork/idea/testData/diagnosticMessage/conflictingOverloadsClass.kt
T
Alexander Udalov 4f9f5d231b Fix incorrect diagnostic message for CONFLICTING_OVERLOADS
- the member and the container were mixed up
- don't output "defined in" part of the message, because we tell later where
  it's already defined in
- fix an instability of the diagnostic order in OverloadResolver by using
  LinkedHashSet
2014-04-17 19:51:29 +04:00

8 lines
145 B
Kotlin
Vendored

// !DIAGNOSTICS_NUMBER: 2
// !DIAGNOSTICS: CONFLICTING_OVERLOADS
class conflictingOverloads {
fun lol(x: Int) = x
fun lol(y: Int) = y
}