Create ProhibitUseSiteTargetAnnotationsOnSuperTypesMigrationInspection

#KT-36258 Fixed
This commit is contained in:
Dmitry Gridin
2020-01-29 16:28:37 +07:00
parent 181dd432ca
commit 266a7a67f0
16 changed files with 184 additions and 4 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.migration.ProhibitUseSiteTargetAnnotationsOnSuperTypesMigrationInspection
@@ -0,0 +1,10 @@
// LANGUAGE_VERSION: 1.4
// DISABLE-ERRORS
interface Foo
annotation class Ann
class E : <caret>@field:Ann @get:Ann @set:Ann @setparam:Ann Foo
interface G : @Ann Foo
@@ -0,0 +1,10 @@
// LANGUAGE_VERSION: 1.4
// DISABLE-ERRORS
interface Foo
annotation class Ann
class E : @get:Ann @set:Ann @setparam:Ann Foo
interface G : @Ann Foo
@@ -0,0 +1,10 @@
// LANGUAGE_VERSION: 1.4
// DISABLE-ERRORS
interface Foo
annotation class Ann
class E : @field:Ann <caret>@get:Ann @set:Ann @setparam:Ann Foo
interface G : @Ann Foo
@@ -0,0 +1,10 @@
// LANGUAGE_VERSION: 1.4
// DISABLE-ERRORS
interface Foo
annotation class Ann
class E : @field:Ann @set:Ann @setparam:Ann Foo
interface G : @Ann Foo
@@ -0,0 +1,10 @@
// LANGUAGE_VERSION: 1.4
// DISABLE-ERRORS
interface Foo
annotation class Ann
class E : @field:Ann @get:Ann <caret>@set:Ann @setparam:Ann Foo
interface G : @Ann Foo
@@ -0,0 +1,10 @@
// LANGUAGE_VERSION: 1.4
// DISABLE-ERRORS
interface Foo
annotation class Ann
class E : @field:Ann @get:Ann @setparam:Ann Foo
interface G : @Ann Foo
@@ -0,0 +1,10 @@
// LANGUAGE_VERSION: 1.4
// DISABLE-ERRORS
interface Foo
annotation class Ann
class E : @field:Ann @get:Ann @set:Ann <caret>@setparam:Ann Foo
interface G : @Ann Foo
@@ -0,0 +1,10 @@
// LANGUAGE_VERSION: 1.4
// DISABLE-ERRORS
interface Foo
annotation class Ann
class E : @field:Ann @get:Ann @set:Ann Foo
interface G : @Ann Foo
@@ -0,0 +1,11 @@
// LANGUAGE_VERSION: 1.4
// PROBLEM: none
// DISABLE-ERRORS
interface Foo
annotation class Ann
class E : @field:Ann @get:Ann @set:Ann @setparam:Ann Foo
interface G : <caret>@Ann Foo