Create from usage: Support generation of nested Java classes from usages in Kotlin code
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// "Create annotation 'foo'" "false"
|
||||
// ERROR: Unresolved reference: foo
|
||||
|
||||
J.<caret>foo(1, "2") fun test() {
|
||||
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class J {
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
class J {
|
||||
|
||||
public static @interface foo {
|
||||
int i();
|
||||
|
||||
String s();
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
// ERROR: Unresolved reference: foo
|
||||
|
||||
J.foo(1, "2") fun test() {
|
||||
|
||||
}
|
||||
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
// ERROR: Unresolved reference: foo
|
||||
|
||||
J.<caret>foo(1, "2") fun test() {
|
||||
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class J {
|
||||
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
class J {
|
||||
|
||||
public static @interface foo {
|
||||
int count();
|
||||
|
||||
String name();
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
// ERROR: Unresolved reference: foo
|
||||
|
||||
J.foo(count = 1, name = "2") fun test() {
|
||||
|
||||
}
|
||||
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create annotation 'foo'" "true"
|
||||
// ERROR: Unresolved reference: foo
|
||||
|
||||
J.<caret>foo(count = 1, name = "2") fun test() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user