Showing inferred types of Scala expressions

前端 未结 3 903
梦谈多话
梦谈多话 2021-02-14 20:13

How can I see the types inferred by the Scala compiler for expressions etc.? I have some code with complicated type inference and implicit conversions, and it\'s hard to see wha

3条回答
  •  我寻月下人不归
    2021-02-14 20:45

    This exact feature has been added in Eclipse Scala IDE 3.0!

    Select any portion of code and press Ctrl-Shift-W T (replacing Ctrl by Cmd on Mac) to see the inferred type.

提交回复
热议问题