Check explicit type specification in "Might be const" inspection

So #KT-23303 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-03-23 19:53:47 +03:00
committed by Mikhail Glukhikh
parent 9539212180
commit 94c5344fd1
10 changed files with 50 additions and 6 deletions
@@ -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