Add quick fix for TOPLEVEL_TYPEALIASES_ONLY
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
cd880c779b
commit
8aa120576b
@@ -0,0 +1,9 @@
|
||||
// "Move typealias to top level" "true"
|
||||
class C {
|
||||
<caret>typealias Foo = String
|
||||
|
||||
fun bar(foo: Foo) {
|
||||
}
|
||||
}
|
||||
|
||||
fun baz() {}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Move typealias to top level" "true"
|
||||
class C {
|
||||
|
||||
fun bar(foo: Foo) {
|
||||
}
|
||||
}
|
||||
|
||||
typealias Foo = String
|
||||
|
||||
fun baz() {}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Move typealias to top level" "true"
|
||||
class C {
|
||||
class CC {
|
||||
<caret>typealias Foo = String
|
||||
|
||||
fun bar(foo: Foo) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun baz() {}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Move typealias to top level" "true"
|
||||
class C {
|
||||
class CC {
|
||||
|
||||
fun bar(foo: Foo) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
typealias Foo = String
|
||||
|
||||
fun baz() {}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Move typealias to top level" "true"
|
||||
fun bar() {
|
||||
<caret>typealias Foo = String
|
||||
|
||||
fun baz(foo: Foo) {
|
||||
}
|
||||
}
|
||||
|
||||
fun qux() {}
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Move typealias to top level" "true"
|
||||
fun bar() {
|
||||
|
||||
fun baz(foo: Foo) {
|
||||
}
|
||||
}
|
||||
|
||||
typealias Foo = String
|
||||
|
||||
fun qux() {}
|
||||
@@ -0,0 +1,11 @@
|
||||
// "Move typealias to top level" "true"
|
||||
fun bar() {
|
||||
class C {
|
||||
<caret>typealias Foo = String
|
||||
|
||||
fun baz(foo: Foo) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun qux() {}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Move typealias to top level" "true"
|
||||
fun bar() {
|
||||
class C {
|
||||
|
||||
fun baz(foo: Foo) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
typealias Foo = String
|
||||
|
||||
fun qux() {}
|
||||
Reference in New Issue
Block a user