Mixin kotlin.Number methods into j.l.Number member scope

#KT-9672 Fixed
This commit is contained in:
Denis Zharkov
2015-10-20 18:32:33 +03:00
parent b774373dbc
commit 1413cab1e6
3 changed files with 21 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
fun test(x: java.lang.Integer) {
x.<caret>
}
// EXIST: toByte
// EXIST: toShort
// EXIST: toInt
// EXIST: toLong
// EXIST: toFloat
// EXIST: toDouble
@@ -2302,6 +2302,12 @@ public class JvmBasicCompletionTestGenerated extends AbstractJvmBasicCompletionT
doTest(fileName);
}
@TestMetadata("Number.kt")
public void testNumber() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/basic/java/Number.kt");
doTest(fileName);
}
@TestMetadata("PackageDirective.kt")
public void testPackageDirective() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/basic/java/PackageDirective.kt");