You are currently viewing Display inferred type in IDE?

Display inferred type in IDE?

If I don’t know the type of variable ‘

a

‘, sometimes I do this:

val foo:String = a

And then look at the error, which will reveal the type (unless it’s actually a String, in which case there will be no error).

Is there a more direct way of doing this in Android Studio or in IntelliJ?

submitted by /u/Place-Wide
[link] [comments]