[K1, K2, CLI] Mark whole position range of compiler diagnostics in CLI
#KT-64989
This commit is contained in:
committed by
Space Team
parent
5b11308d1b
commit
7eab4b672d
+1
-1
@@ -1,4 +1,4 @@
|
||||
compiler/testData/javaModules/automaticModuleInternalJdkPackageUsage/jvmStatUsage/Test.kt:1:28: error: symbol is declared in module 'jdk.internal.jvmstat' which does not export package 'sun.jvmstat.monitor'
|
||||
val z: sun.jvmstat.monitor.Monitor? = null
|
||||
^
|
||||
^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
compiler/testData/javaModules/coroutinesDebugMetadata/usage/usage.kt:1:16: warning: this code uses error suppression for 'INVISIBLE_REFERENCE'. While it might compile and work, the compiler behavior is UNSPECIFIED and WON'T BE PRESERVED. Please report your use case to the Kotlin issue tracker instead: https://kotl.in/issue
|
||||
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER", "CANNOT_OVERRIDE_INVISIBLE_MEMBER")
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^
|
||||
compiler/testData/javaModules/coroutinesDebugMetadata/usage/usage.kt:1:59: warning: this code uses error suppression for 'CANNOT_OVERRIDE_INVISIBLE_MEMBER'. While it might compile and work, the compiler behavior is UNSPECIFIED and WON'T BE PRESERVED. Please report your use case to the Kotlin issue tracker instead: https://kotl.in/issue
|
||||
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER", "CANNOT_OVERRIDE_INVISIBLE_MEMBER")
|
||||
^
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
OK
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
compiler/testData/javaModules/jdkModulesFromNamed/main/test.kt:11:18: error: unresolved reference 'swing'.
|
||||
val s: javax.swing.JFrame? = null
|
||||
^
|
||||
^^^^^
|
||||
compiler/testData/javaModules/jdkModulesFromNamed/main/test.kt:12:5: error: overload resolution ambiguity between candidates: [@InlineOnly() fun println(message: Any?): Unit, @InlineOnly() fun println(message: Boolean): Unit, @InlineOnly() fun println(message: Byte): Unit, ...]
|
||||
println(s)
|
||||
^
|
||||
^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
compiler/testData/javaModules/jdkModulesFromNamed/main/test.kt:11:18: error: unresolved reference: swing
|
||||
val s: javax.swing.JFrame? = null
|
||||
^
|
||||
compiler/testData/javaModules/jdkModulesFromNamed/main/test.kt:12:5: error: overload resolution ambiguity:
|
||||
^^^^^
|
||||
compiler/testData/javaModules/jdkModulesFromNamed/main/test.kt:12:5: error: overload resolution ambiguity:
|
||||
public inline fun println(message: Any?): Unit defined in kotlin.io
|
||||
public inline fun println(message: Boolean): Unit defined in kotlin.io
|
||||
public inline fun println(message: Byte): Unit defined in kotlin.io
|
||||
@@ -13,5 +13,5 @@ public inline fun println(message: Int): Unit defined in kotlin.io
|
||||
public inline fun println(message: Long): Unit defined in kotlin.io
|
||||
public inline fun println(message: Short): Unit defined in kotlin.io
|
||||
println(s)
|
||||
^
|
||||
^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
compiler/testData/javaModules/releaseFlag/moduleSwing/foo/Foo.kt:5:18: error: unresolved reference 'swing'.
|
||||
val z: javax.swing.JFrame? = null
|
||||
^
|
||||
^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
compiler/testData/javaModules/releaseFlag/moduleSwing/foo/Foo.kt:5:18: error: unresolved reference: swing
|
||||
val z: javax.swing.JFrame? = null
|
||||
^
|
||||
^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
$TMP_DIR$/dependency2.jar: warning: the root is ignored because a module with the same name 'dependency' has been found earlier on the module path at: $TMP_DIR$/dependency1.jar
|
||||
compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:2:8: error: unresolved reference 'bar'.
|
||||
import bar.Bar
|
||||
^
|
||||
^^^
|
||||
compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:6:12: error: unresolved reference 'Bar'.
|
||||
val b: Bar = Bar()
|
||||
^
|
||||
^^^
|
||||
compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:6:18: error: unresolved reference 'Bar'.
|
||||
val b: Bar = Bar()
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
$TMP_DIR$/dependency2.jar: warning: the root is ignored because a module with the same name 'dependency' has been found earlier on the module path at: $TMP_DIR$/dependency1.jar
|
||||
compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:2:8: error: unresolved reference: bar
|
||||
import bar.Bar
|
||||
^
|
||||
^^^
|
||||
compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:6:12: error: unresolved reference: Bar
|
||||
val b: Bar = Bar()
|
||||
^
|
||||
^^^
|
||||
compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:6:18: error: unresolved reference: Bar
|
||||
val b: Bar = Bar()
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
compiler/testData/javaModules/simpleUseNonExportedPackage/moduleB/usage.kt:8:9: error: symbol is declared in module 'moduleA' which does not export package 'a.impl'
|
||||
val a3: AImpl = A.getInstance()
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
compiler/testData/javaModules/specifyPathToModuleInfoInArguments/moduleB/usage.kt:2:19: error: symbol is declared in module 'moduleA' which does not export package 'unexported'
|
||||
import unexported.Unexported
|
||||
^
|
||||
^^^^^^^^^^
|
||||
compiler/testData/javaModules/specifyPathToModuleInfoInArguments/moduleB/usage.kt:9:5: error: symbol is declared in module 'moduleA' which does not export package 'unexported'
|
||||
Unexported()
|
||||
^
|
||||
^^^^^^^^^^
|
||||
compiler/testData/javaModules/specifyPathToModuleInfoInArguments/moduleB/usage.kt:13:5: error: unresolved reference: Unrelated
|
||||
Unrelated()
|
||||
^
|
||||
^^^^^^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
compiler/testData/javaModules/unnamedDependsOnNamed/moduleB/usage.kt:2:17: error: symbol is declared in module 'moduleA' which does not export package 'foo.impl'
|
||||
import foo.impl.Impl
|
||||
^
|
||||
^^^^
|
||||
compiler/testData/javaModules/unnamedDependsOnNamed/moduleB/usage.kt:7:5: error: symbol is declared in module 'moduleA' which does not export package 'foo.impl'
|
||||
Impl() // should be error
|
||||
^
|
||||
^^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB/usage.kt:1:8: error: unresolved reference 'foo'.
|
||||
import foo.Foo
|
||||
^
|
||||
^^^
|
||||
compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB/usage.kt:4:5: error: unresolved reference 'Foo'.
|
||||
Foo()
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB/usage.kt:1:8: error: unresolved reference: foo
|
||||
import foo.Foo
|
||||
^
|
||||
^^^
|
||||
compiler/testData/javaModules/unnamedDoesNotReadNotAdded/moduleB/usage.kt:4:5: error: unresolved reference: Foo
|
||||
Foo()
|
||||
^
|
||||
^^^
|
||||
COMPILATION_ERROR
|
||||
|
||||
Reference in New Issue
Block a user