22
platform type
??
タイトルからしてわからない …
母国語(PHP)には存在しない概念 …
Slide 23
Slide 23 text
23
platform type
"platform types — types which the Kotlin compiler uses, when
interoperating with code written for another platform (e.g., Java)."
https://kotlinlang.org/spec/type-system.html#platform-types
32
it
“It's very common for a lambda expression to have only one parameter.
If the compiler can parse the signature without any parameters, the
parameter does not need to be declared and -> can be omitted. The
parameter will be implicitly declared under the name it:”
https://kotlinlang.org/docs/lambdas.html#it-implicit-name-of-a-single-p
arameter
45
type resolution
● type resolution[1]が有効でないと実行されないルールがある
● `--debug`オプションで確認できる
1. https://github.com/detekt/detekt/blob/main/website/docs/gettingstarted/type-resolution.md
The rule 'AvoidReferentialEquality' requires type resolution but it was run without it.
Slide 46
Slide 46 text
46
type resolution
● type resolution[1]が有効でないと実行されないルールがある
● `--debug`オプションで確認できる
● ./gradlew detektMain などして有効化できる
● 手元ではmavenLocalで試せる
1. https://github.com/detekt/detekt/blob/main/website/docs/gettingstarted/type-resolution.md
The rule 'AvoidReferentialEquality' requires type resolution but it was run without it.