how to find the implicit function or variables in scala

前端 未结 2 1954
一个人的身影
一个人的身影 2021-01-02 17:27

I can\'t find the implicit conversions or implicit argument values being used in Scala code. This makes reading open source projects very confusing.

The implic

2条回答
  •  旧巷少年郎
    2021-01-02 18:14

    You can also use the Scala Plugin for IntelliJ IDEA. The implicit conversions are underlined like this (where Int 1 is converted to BigInt):

    The above example is taken from https://www.jetbrains.com/help/idea/2016.1/working-with-scala-implicit-conversions.html?origin=old_help#highlight. You can read more on that page.

提交回复
热议问题