Has platform type : public API only option
(cherry picked from commit a084c1d)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
86b70ba995
commit
5c4b6ba8b0
+7
-1
@@ -1,3 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() = java.lang.String.valueOf(1)
|
||||
fun foo() = java.lang.String.valueOf(1)
|
||||
|
||||
private fun foo() = java.lang.String.valueOf(2)
|
||||
|
||||
open class My {
|
||||
protected fun foo() = java.lang.String.valueOf(3)
|
||||
}
|
||||
@@ -7,6 +7,14 @@
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Function, property or variable has platform type.</problem_class>
|
||||
<description>Function has platform type. Make the type explicit to prevent subtle bugs.</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>function.kt</file>
|
||||
<line>8</line>
|
||||
<module>light_idea_test_case</module>
|
||||
<entry_point TYPE="file" FQNAME="temp:///src/function.kt" />
|
||||
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Function or property has platform type</problem_class>
|
||||
<description>Function has platform type. Make the type explicit to prevent subtle bugs.</description>
|
||||
</problem>
|
||||
<problem>
|
||||
<file>property1.kt</file>
|
||||
<line>3</line>
|
||||
|
||||
Reference in New Issue
Block a user