Files
kotlin-fork/idea/resources/inspectionDescriptions/RedundantCompanionReference.html
T
2018-03-21 09:15:48 +03:00

18 lines
320 B
HTML

<html>
<body>
This inspection reports redundant <b>Companion</b> reference, for example:
<br /><br />
<pre>
<b>class</b> A {
<b>companion object</b> {
<b>fun</b> create() = "Hello"
}
}
<b>fun</b> test() {
<b>val</b> s = A.Companion.create() // redundant Companion reference
}
</pre>
</body>
</html>