Has platform type : public API only option

(cherry picked from commit a084c1d)
This commit is contained in:
Mikhail Glukhikh
2016-06-14 13:59:24 +03:00
committed by Mikhail Glukhikh
parent 86b70ba995
commit 5c4b6ba8b0
3 changed files with 29 additions and 9 deletions
+7 -1
View File
@@ -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>