-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix exception when reporting WRONG_TYPE_PARAMETER_NULLABILITY_FOR_JAV…
…A_OVERRIDE ^KT-51979 Fixed
- Loading branch information
Showing
7 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...vel/api/fir/diagnostic/compiler/based/DiagnosisCompilerTestFE10TestdataTestGenerated.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
...s/tests-gen/org/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsTestGenerated.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
...rg/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsWithLightTreeTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
14 changes: 14 additions & 0 deletions
14
compiler/testData/diagnostics/tests/j+k/types/noOverrideKeyword.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,14 @@ | ||
// !SKIP_JAVAC | ||
// SKIP_TXT | ||
// !LANGUAGE: -ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated | ||
// FILE: JavaInterface.java | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public interface JavaInterface<V> { | ||
void interfaceMethod(@NotNull V value); | ||
} | ||
|
||
// FILE: main.kt | ||
interface KotlinInterface<X> : JavaInterface<X> { | ||
override <!SYNTAX!><<!><!SYNTAX!>T<!><!SYNTAX!>><!> fun interfaceMethod(x: X) | ||
} |
14 changes: 14 additions & 0 deletions
14
compiler/testData/diagnostics/tests/j+k/types/noOverrideKeyword.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,14 @@ | ||
// !SKIP_JAVAC | ||
// SKIP_TXT | ||
// !LANGUAGE: -ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated | ||
// FILE: JavaInterface.java | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public interface JavaInterface<V> { | ||
void interfaceMethod(@NotNull V value); | ||
} | ||
|
||
// FILE: main.kt | ||
interface KotlinInterface<X> : JavaInterface<X> { | ||
override <!SYNTAX!><<!><!SYNTAX!>T<!><!SYNTAX!>><!> fun <!VIRTUAL_MEMBER_HIDDEN!>interfaceMethod<!>(x: X) | ||
} |
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.