Improve diagnostics for "not yet supported in inline"

- Tell user what exactly is not supported (e.g., local inline function)
- Reduce diagnostics range to a keyword or an identifier
  where appropriate

 #KT-16223 Fixed Target versions 1.1.50
This commit is contained in:
Dmitry Petrov
2017-09-05 16:38:13 +03:00
parent 160ba0c7c0
commit 2b27e64fc8
18 changed files with 105 additions and 30 deletions
@@ -6,8 +6,8 @@ public fun test() {
}
}
<!NOT_YET_SUPPORTED_IN_INLINE!>inline fun localFun2() {
<!NOT_YET_SUPPORTED_IN_INLINE!>inline<!> fun localFun2() {
Z().localFun()
}<!>
}
}
@@ -4,8 +4,8 @@ public fun test() {
}
<!NOT_YET_SUPPORTED_IN_INLINE!>inline fun localFun2() {
<!NOT_YET_SUPPORTED_IN_INLINE!>inline<!> fun localFun2() {
localFun()
}<!>
}
}