Check explicit type specification in "Might be const" inspection
So #KT-23303 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
9539212180
commit
94c5344fd1
@@ -0,0 +1 @@
|
||||
val <caret>foo: Int = 0
|
||||
@@ -0,0 +1 @@
|
||||
const val foo: Int = 0
|
||||
@@ -0,0 +1 @@
|
||||
val <caret>foo: Boolean = true
|
||||
@@ -0,0 +1 @@
|
||||
const val foo: Boolean = true
|
||||
@@ -0,0 +1 @@
|
||||
val <caret>foo: String = ""
|
||||
@@ -0,0 +1 @@
|
||||
const val foo: String = ""
|
||||
@@ -0,0 +1,2 @@
|
||||
// PROBLEM: none
|
||||
val <caret>foo: Any = ""
|
||||
@@ -0,0 +1,2 @@
|
||||
// PROBLEM: none
|
||||
val <caret>foo: Number = 0
|
||||
Reference in New Issue
Block a user