Report WRONG_MODIFIER_TARGET on the modifier instead of the declaration

in ExternalFunChecker.

This allows RemoveModifierFix to provide a quickfix to remove it.
This commit is contained in:
Mark Punzalan
2021-02-19 22:10:26 +00:00
committed by Ilya Kirillov
parent c680ee8525
commit dd20dd9806
6 changed files with 29 additions and 7 deletions
@@ -0,0 +1,5 @@
// "Remove 'external' modifier" "true"
class B {
<caret>external val foo: Int = 23
}