-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b68525
commit 85efbe5
Showing
11 changed files
with
182 additions
and
17 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...el/api/fir/diagnostic/compiler/based/DiagnosticCompilerTestFE10TestdataTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...c/compiler/based/LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...en/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...ests-gen/org/jetbrains/kotlin/test/runners/FirPsiOldFrontendDiagnosticsTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
compiler/testData/diagnostics/tests/testsWithJava21/hiddenInDeclaringMethods.fir.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import java.lang.invoke.MethodHandles | ||
|
||
fun test(short: Short, long: Long, float: Float, | ||
string: String, char: Char, collection: Collection<Any>, | ||
double: Double, boolean: Boolean, list: List<Any>, | ||
int: Int, byte: Byte, enumType: MyEnum){ | ||
val x : MethodHandles.Lookup = null!! | ||
|
||
short.<!UNRESOLVED_REFERENCE!>describeConstable<!>() | ||
|
||
long.<!UNRESOLVED_REFERENCE!>describeConstable<!>() | ||
long.<!UNRESOLVED_REFERENCE!>resolveConstantDesc<!>(x) | ||
|
||
float.<!UNRESOLVED_REFERENCE!>describeConstable<!>() | ||
float.<!UNRESOLVED_REFERENCE!>resolveConstantDesc<!>(x) | ||
|
||
string.<!UNRESOLVED_REFERENCE!>describeConstable<!>() | ||
string.<!UNRESOLVED_REFERENCE!>resolveConstantDesc<!>(x) | ||
string.indexOf(<!ARGUMENT_TYPE_MISMATCH!>1<!>,1,<!ARGUMENT_TYPE_MISMATCH!>1<!>) | ||
string.indexOf(<!ARGUMENT_TYPE_MISMATCH!>""<!>, 1,<!ARGUMENT_TYPE_MISMATCH!>2<!>) | ||
string.<!UNRESOLVED_REFERENCE!>splitWithDelimiters<!>("", 1) | ||
string.<!UNRESOLVED_REFERENCE!>strip<!>() | ||
string.<!UNRESOLVED_REFERENCE!>stripLeading<!>() | ||
string.<!UNRESOLVED_REFERENCE!>stripTrailing<!>() | ||
string.<!UNRESOLVED_REFERENCE!>indent<!>(1) | ||
string.<!UNRESOLVED_REFERENCE!>stripIndent<!>() | ||
string.<!UNRESOLVED_REFERENCE!>translateEscapes<!>() | ||
string.<!UNRESOLVED_REFERENCE!>transform<!>({}) | ||
string.<!UNRESOLVED_REFERENCE!>formatted<!>() | ||
|
||
char.<!UNRESOLVED_REFERENCE!>describeConstable<!>() | ||
|
||
collection.<!UNRESOLVED_REFERENCE!>toArray<!> {_: Int -> arrayOf(1)} | ||
|
||
double.<!UNRESOLVED_REFERENCE!>describeConstable<!>() | ||
double.<!UNRESOLVED_REFERENCE!>resolveConstantDesc<!>(x) | ||
|
||
boolean.<!UNRESOLVED_REFERENCE!>describeConstable<!>() | ||
|
||
list.<!UNRESOLVED_REFERENCE!>getFirst<!>() | ||
list.<!UNRESOLVED_REFERENCE!>getLast<!>() | ||
|
||
int.<!UNRESOLVED_REFERENCE!>describeConstable<!>() | ||
int.<!UNRESOLVED_REFERENCE!>resolveConstantDesc<!>(x) | ||
|
||
byte.<!UNRESOLVED_REFERENCE!>describeConstable<!>() | ||
|
||
enumType.<!UNRESOLVED_REFERENCE!>describeConstable<!>() | ||
} | ||
|
||
enum class MyEnum |
51 changes: 51 additions & 0 deletions
51
compiler/testData/diagnostics/tests/testsWithJava21/hiddenInDeclaringMethods.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import java.lang.invoke.MethodHandles | ||
|
||
fun test(short: Short, long: Long, float: Float, | ||
string: String, char: Char, collection: Collection<Any>, | ||
double: Double, boolean: Boolean, list: List<Any>, | ||
int: Int, byte: Byte, enumType: MyEnum){ | ||
val x : MethodHandles.Lookup = null!! | ||
|
||
short.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>describeConstable<!>() | ||
|
||
long.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>describeConstable<!>() | ||
long.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>resolveConstantDesc<!>(x) | ||
|
||
float.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>describeConstable<!>() | ||
float.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>resolveConstantDesc<!>(x) | ||
|
||
string.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>describeConstable<!>() | ||
string.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>resolveConstantDesc<!>(x) | ||
string.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>indexOf<!>(1,1,1) | ||
string.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>indexOf<!>("", 1,2) | ||
string.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>splitWithDelimiters<!>("", 1) | ||
string.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>strip<!>() | ||
string.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>stripLeading<!>() | ||
string.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>stripTrailing<!>() | ||
string.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>indent<!>(1) | ||
string.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>stripIndent<!>() | ||
string.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>translateEscapes<!>() | ||
string.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>transform<!>({}) | ||
string.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>formatted<!>() | ||
|
||
char.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>describeConstable<!>() | ||
|
||
collection.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>toArray<!> {_: Int -> arrayOf(1)} | ||
|
||
double.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>describeConstable<!>() | ||
double.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>resolveConstantDesc<!>(x) | ||
|
||
boolean.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>describeConstable<!>() | ||
|
||
list.<!UNRESOLVED_REFERENCE!>getFirst<!>() | ||
list.<!UNRESOLVED_REFERENCE!>getLast<!>() | ||
|
||
int.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>describeConstable<!>() | ||
int.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>resolveConstantDesc<!>(x) | ||
|
||
byte.<!DEPRECATION, JAVA_MODULE_DOES_NOT_EXPORT_PACKAGE!>describeConstable<!>() | ||
|
||
enumType.<!DEPRECATION!>describeConstable<!>() | ||
} | ||
|
||
enum class MyEnum |
15 changes: 10 additions & 5 deletions
15
compiler/testData/diagnostics/tests/testsWithJava21/newListMethods.diag.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
/newListMethods.kt:39:7: error: unresolved reference: getFirst | ||
/newListMethods.kt:38:22: error: unresolved reference: getFirst | ||
return super.getFirst() | ||
^^^^^^^^ | ||
/newListMethods.kt:42:22: error: unresolved reference: getLast | ||
return super.getLast() | ||
^^^^^^^ | ||
/newListMethods.kt:49:7: error: unresolved reference: getFirst | ||
x.getFirst() | ||
^^^^^^^^ | ||
/newListMethods.kt:40:7: error: using 'getter for first: E!' is an error. 'getFirst()' member of List is redundant in Kotlin and might be removed soon. Please use 'first()' stdlib extension instead | ||
/newListMethods.kt:50:7: error: using 'getter for first: E!' is an error. 'getFirst()' member of List is redundant in Kotlin and might be removed soon. Please use 'first()' stdlib extension instead | ||
x.first // synthetic property for getFirst() | ||
^^^^^ | ||
/newListMethods.kt:42:7: error: unresolved reference: getLast | ||
/newListMethods.kt:52:7: error: unresolved reference: getLast | ||
x.getLast() | ||
^^^^^^^ | ||
/newListMethods.kt:43:7: error: using 'getter for last: E!' is an error. 'getLast()' member of List is redundant in Kotlin and might be removed soon. Please use 'last()' stdlib extension instead | ||
/newListMethods.kt:53:7: error: using 'getter for last: E!' is an error. 'getLast()' member of List is redundant in Kotlin and might be removed soon. Please use 'last()' stdlib extension instead | ||
x.last | ||
^^^^ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.