Add quickfix tests for HasPlatformTypeInspection
(cherry picked from commit af1b26b)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.inspections.HasPlatformTypeInspection
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Add non-null asserted (!!) call" "false"
|
||||
// ACTION: Convert function to property
|
||||
// ACTION: Convert to block body
|
||||
// ACTION: Create test
|
||||
// ACTION: Specify return type explicitly
|
||||
// ACTION: Specify return type explicitly
|
||||
|
||||
fun foo<caret>() = arrayOf(java.lang.String.valueOf(1))
|
||||
@@ -0,0 +1,3 @@
|
||||
// "Specify return type explicitly" "true"
|
||||
|
||||
fun foo<caret>() = arrayOf(java.lang.String.valueOf(1))
|
||||
@@ -0,0 +1,3 @@
|
||||
// "Specify return type explicitly" "true"
|
||||
|
||||
fun foo(): Array<String><caret> = arrayOf(java.lang.String.valueOf(1))
|
||||
@@ -0,0 +1,3 @@
|
||||
// "Add non-null asserted (!!) call" "true"
|
||||
|
||||
fun bar<caret>() = java.lang.String.valueOf(1)
|
||||
@@ -0,0 +1,3 @@
|
||||
// "Add non-null asserted (!!) call" "true"
|
||||
|
||||
fun bar<caret>() = java.lang.String.valueOf(1)!!
|
||||
@@ -0,0 +1,3 @@
|
||||
// "Specify return type explicitly" "true"
|
||||
|
||||
fun foo<caret>() = java.lang.String.valueOf(1)
|
||||
@@ -0,0 +1,3 @@
|
||||
// "Specify return type explicitly" "true"
|
||||
|
||||
fun foo(): String?<caret> = java.lang.String.valueOf(1)
|
||||
Reference in New Issue
Block a user