-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FE 1.0] Don't report OVERRIDE_DEPRECATION on default accessors of de…
…precated properties ^KT-51893 Fixed
- Loading branch information
1 parent
a3ed332
commit 5584a50
Showing
7 changed files
with
100 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
45 changes: 45 additions & 0 deletions
45
compiler/testData/diagnostics/tests/deprecated/duplicatedOverrideDeprecationOnProperty.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,45 @@ | ||
// FIR_IDENTICAL | ||
// ISSUE: KT-51893 | ||
|
||
interface A { | ||
@Deprecated("") | ||
val a: String | ||
|
||
@Deprecated("") | ||
val b: String | ||
|
||
@Deprecated("") | ||
var c: String | ||
|
||
@Deprecated("") | ||
var d: String | ||
|
||
@Deprecated("") | ||
var e: String | ||
|
||
@Deprecated("") | ||
var h: String | ||
} | ||
|
||
object B : A { | ||
override val <!OVERRIDE_DEPRECATION!>a<!>: String = "" | ||
|
||
override val <!OVERRIDE_DEPRECATION!>b<!>: String | ||
get() = "" | ||
|
||
override var <!OVERRIDE_DEPRECATION!>c<!>: String = "" | ||
|
||
override var <!OVERRIDE_DEPRECATION!>d<!>: String = "" | ||
get() = field | ||
|
||
override var <!OVERRIDE_DEPRECATION!>e<!>: String = "" | ||
set(value) { | ||
field = value | ||
} | ||
|
||
override var <!OVERRIDE_DEPRECATION!>h<!>: String = "" | ||
get() = field | ||
set(value) { | ||
field = value | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
compiler/testData/diagnostics/tests/deprecated/duplicatedOverrideDeprecationOnProperty.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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package | ||
|
||
public interface A { | ||
@kotlin.Deprecated(message = "") public abstract val a: kotlin.String | ||
@kotlin.Deprecated(message = "") public abstract val b: kotlin.String | ||
@kotlin.Deprecated(message = "") public abstract var c: kotlin.String | ||
@kotlin.Deprecated(message = "") public abstract var d: kotlin.String | ||
@kotlin.Deprecated(message = "") public abstract var e: kotlin.String | ||
@kotlin.Deprecated(message = "") public abstract var h: kotlin.String | ||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean | ||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int | ||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String | ||
} | ||
|
||
public object B : A { | ||
private constructor B() | ||
public open override /*1*/ val a: kotlin.String = "" | ||
public open override /*1*/ val b: kotlin.String | ||
public open override /*1*/ var c: kotlin.String | ||
public open override /*1*/ var d: kotlin.String | ||
public open override /*1*/ var e: kotlin.String | ||
public open override /*1*/ var h: kotlin.String | ||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean | ||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int | ||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String | ||
} |
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.