Add quick fix for TOPLEVEL_TYPEALIASES_ONLY

This commit is contained in:
Toshiaki Kameyama
2020-01-07 03:12:29 +01:00
committed by Vladimir Dolzhenko
parent cd880c779b
commit 8aa120576b
13 changed files with 169 additions and 1 deletions
@@ -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() {}