Brake test intentionally to avoid primitive type annotation

Relates to #KT-45417

GitOrigin-RevId: 1dc0e9fad76a360450da62d73fe7979d7ee7f48d
This commit is contained in:
Vladimir Dolzhenko
2021-03-11 21:39:47 +03:00
committed by intellij-monorepo-bot
parent 2330481c81
commit d581bf4841
9 changed files with 54 additions and 4 deletions
@@ -252,11 +252,21 @@ public abstract class QuickFixTestGenerated extends AbstractQuickFixTest {
runTest("testData/quickfix/addAnnotationTarget/hasAnnotationTarget1.kt");
}
@TestMetadata("hasAnnotationTarget11.kt")
public void testHasAnnotationTarget11() throws Exception {
runTest("testData/quickfix/addAnnotationTarget/hasAnnotationTarget11.kt");
}
@TestMetadata("hasAnnotationTarget2.kt")
public void testHasAnnotationTarget2() throws Exception {
runTest("testData/quickfix/addAnnotationTarget/hasAnnotationTarget2.kt");
}
@TestMetadata("hasAnnotationTarget21.kt")
public void testHasAnnotationTarget21() throws Exception {
runTest("testData/quickfix/addAnnotationTarget/hasAnnotationTarget21.kt");
}
@TestMetadata("noBackingField.kt")
public void testNoBackingField() throws Exception {
runTest("testData/quickfix/addAnnotationTarget/noBackingField.kt");
@@ -3,5 +3,6 @@
annotation class Foo
class Test {
fun foo(): <caret>@Foo Int = 1
// TODO: [VD] temporary broken due to https://youtrack.jetbrains.com/issue/KT-45417
fun foo(): @Foo Int = 1
}
@@ -4,6 +4,7 @@ annotation class Foo
@Foo
class Test {
// TODO: [VD] temporary broken due to https://youtrack.jetbrains.com/issue/KT-45417
@Foo
fun foo(): <caret>@Foo Int = 1
fun foo(): @Foo Int = 1
}
@@ -4,5 +4,6 @@
annotation class Foo
class Test {
fun foo(): <caret>@Foo Int = 1
// TODO: [VD] temporary broken due to https://youtrack.jetbrains.com/issue/KT-45417
fun foo(): @Foo Int = 1
}
@@ -0,0 +1,8 @@
// "Add annotation target" "true"
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
annotation class Foo
class Test {
fun foo(): <caret>@Foo String = ""
}
@@ -0,0 +1,8 @@
// "Add annotation target" "true"
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.TYPE)
annotation class Foo
class Test {
fun foo(): @Foo String = ""
}
@@ -6,5 +6,6 @@ annotation class Foo
@Foo
class Test {
@Foo
fun foo(): <caret>@Foo Int = 1
// TODO: [VD] temporary broken due to https://youtrack.jetbrains.com/issue/KT-45417
fun foo(): @Foo Int = 1
}
@@ -0,0 +1,10 @@
// "Add annotation target" "true"
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
annotation class Foo
@Foo
class Test {
@Foo
fun foo(): <caret>@Foo String = ""
}
@@ -0,0 +1,10 @@
// "Add annotation target" "true"
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.TYPE)
annotation class Foo
@Foo
class Test {
@Foo
fun foo(): @Foo String = ""
}