Files
kotlin-fork/idea/testData/checker/wolf/diagnosticAfterSyntax.kt
T
Vladimir Dolzhenko 8783ebc352 Report highlight errors to WolfTheProblemSolver
Relates to #KT-37702
#KTIJ-1246 Fixed

Original commit: bd222a5255c2fd6f4abfce3115f81733ef9a39f3
2021-02-19 05:46:04 +00:00

5 lines
601 B
Kotlin
Vendored

// WOLF-ERRORS: true
// HAS-WOLF-ERRORS: true
// TYPE: asd
// ERROR: Overload resolution ambiguity: <br>public final operator fun plus(other: Byte): Int defined in kotlin.Int<br>public final operator fun plus(other: Double): Double defined in kotlin.Int<br>public final operator fun plus(other: Float): Float defined in kotlin.Int<br>public final operator fun plus(other: Int): Int defined in kotlin.Int<br>public final operator fun plus(other: Long): Long defined in kotlin.Int<br>public final operator fun plus(other: Short): Int defined in kotlin.Int
fun diagnosticAfterSyntax(): Int = 42 + <caret>