Closed zhelenskiy closed 8 months ago
There is some problems:
[x] 1. line
and ch
plus 1 for:
fun main() {
dfsdf
}
{ /* ... */ "start": { "line": 2, "ch": 3 }, /* ... */ }
[x] 2. Not found main - <errStream>No main method found in project.\n</errStream>
package org.kotlinlang.play
fun main() {
println("Hello, World!")
}
[x] 3. none some deprecation warnings
fun main() {
println("abc"[0].toInt())
}
Expected:
toInt(): Int' is deprecated. Conversion of Char to Number is deprecated. Use Char.code property instead.
[x] 4. no className
for errors with severities (WARNING
, ERROR
):
fun main() {
val a: dynamic = "abc"
println(a.charAt(1).repeat(3))
}
Before:
{"interval":{ /* ... */ }, "message": "..." , "severity": "ERROR", "className":"red_wavy_line" }
The second point is fixed.
Second attempt for the reverted previous PR.