[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+39
@@ -0,0 +1,39 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
class Example
|
||||
|
||||
fun Example.plus(other: Example) = 0
|
||||
operator infix fun Example.minus(other: Example) = 0
|
||||
|
||||
operator infix fun Example.times(other: Example) = 0
|
||||
fun Example.div(other: Example) = 0
|
||||
|
||||
fun a() {
|
||||
with (Example()) {
|
||||
operator infix fun Example.plus(other: Example) = ""
|
||||
fun Example.minus(other: Example) = ""
|
||||
|
||||
operator infix fun Example.times(other: Example) = ""
|
||||
fun Example.div(other: Example) = ""
|
||||
|
||||
with (Example()) {
|
||||
val a = Example()
|
||||
val b = Example()
|
||||
|
||||
consumeString(a + b)
|
||||
<!INAPPLICABLE_CANDIDATE!>consumeInt<!>(a - b)
|
||||
|
||||
consumeString(a plus b)
|
||||
<!INAPPLICABLE_CANDIDATE!>consumeInt<!>(a minus b)
|
||||
|
||||
a * b
|
||||
a / b
|
||||
|
||||
a times b
|
||||
a div b
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun consumeInt(i: Int) {}
|
||||
fun consumeString(s: String) {}
|
||||
Reference in New Issue
Block a user