Use camel-case in FirFunctionCallOrigin
Also componentCall is operator call
This commit is contained in:
committed by
TeamCityServer
parent
419aa65381
commit
d38effcbbe
@@ -1,45 +0,0 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER, -EXTENSION_SHADOWED_BY_MEMBER
|
||||
|
||||
open class Example {
|
||||
fun invoke() = 0
|
||||
fun get(i: Int) = 0
|
||||
|
||||
fun component1() = 0
|
||||
fun component2() = 0
|
||||
|
||||
fun inc() = Example()
|
||||
|
||||
fun plus(o: Example) = 0
|
||||
}
|
||||
|
||||
class Example2 : Example()
|
||||
|
||||
operator fun Example.invoke() = ""
|
||||
operator fun Example.get(i: Int) = ""
|
||||
|
||||
operator fun Example.component1() = ""
|
||||
operator fun Example.component2() = ""
|
||||
|
||||
operator fun Example.inc() = Example2()
|
||||
|
||||
infix fun Example.plus(o: Example) = ""
|
||||
|
||||
fun test() {
|
||||
var a = Example()
|
||||
val b = Example()
|
||||
|
||||
consumeString(a())
|
||||
consumeString(a[1])
|
||||
|
||||
val (x, y) = Example()
|
||||
consumeString(<!ARGUMENT_TYPE_MISMATCH!>x<!>)
|
||||
consumeString(<!ARGUMENT_TYPE_MISMATCH!>y<!>)
|
||||
|
||||
consumeExample2(++a)
|
||||
|
||||
consumeString(a plus b)
|
||||
}
|
||||
|
||||
fun consumeInt(i: Int) {}
|
||||
fun consumeString(s: String) {}
|
||||
fun consumeExample2(e: Example2) {}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER, -EXTENSION_SHADOWED_BY_MEMBER
|
||||
|
||||
open class Example {
|
||||
@@ -42,4 +43,4 @@ fun test() {
|
||||
|
||||
fun consumeInt(i: Int) {}
|
||||
fun consumeString(s: String) {}
|
||||
fun consumeExample2(e: Example2) {}
|
||||
fun consumeExample2(e: Example2) {}
|
||||
|
||||
Reference in New Issue
Block a user