JetBrains / JetBrains/inspection-plugin

"Use expression body" is reported at different locations by plugin and by IDEA

Open
#9 0 comments 0 reactions 1 assignee Claimed by @mglukhikh View on GitHub
bug
Dominant language
Kotlin
Stars
254
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Based on this [submission](http://kotoed.icc.spbstu.ru:9000/submission/9796) from Kotoed.
```
/** // Plugin reports "use expression body" here
*
*
* Some comment
*/
fun maxDivisor(n: Int): Int
{
return n / minDivisor(n)
}
```
Idea:
```
/**
*
*
* Some comment
*/
fun maxDivisor(n: Int): Int
{
return n / minDivisor(n) // IDEA reports "use expression body" here
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.