Disable removing private/synthetic/local classes temporarily
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
package test
|
||||
|
||||
interface Interface {
|
||||
fun foo(): Int
|
||||
}
|
||||
|
||||
class InterfaceImpl : Interface {
|
||||
override fun foo(): Int = 0
|
||||
}
|
||||
|
||||
fun getInterface(): Interface =
|
||||
object : Interface {
|
||||
override fun foo(): Int = 0
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package test
|
||||
|
||||
interface Interface {
|
||||
fun foo(): Int
|
||||
}
|
||||
|
||||
class InterfaceImpl : Interface {
|
||||
override fun foo(): Int = 0
|
||||
}
|
||||
|
||||
fun getInterface(): Interface =
|
||||
InterfaceImpl()
|
||||
@@ -1,31 +0,0 @@
|
||||
package test
|
||||
|
||||
class A {
|
||||
private inner class AInner {
|
||||
inner class AInnerInner {}
|
||||
|
||||
fun aInnerMethod() {
|
||||
class AInnerMethodLocal
|
||||
|
||||
val aInnerMethodLambda: (Int) -> Int = { it * it }
|
||||
}
|
||||
}
|
||||
|
||||
private class ANested {
|
||||
inner class ANestedInner {}
|
||||
class ANestedNested
|
||||
object ANestedObject
|
||||
|
||||
fun aNestedMethod() {
|
||||
class ANestedMethodLocal
|
||||
|
||||
val aNestedMethodLambda: (Int) -> Int = { it * it }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private class B {
|
||||
inner class BInnerClass
|
||||
class BNestedClass
|
||||
object BObject {}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
package test
|
||||
|
||||
class A
|
||||
@@ -1,8 +0,0 @@
|
||||
package test
|
||||
|
||||
class Class {
|
||||
fun method(): Int {
|
||||
val square: (Int) -> Int = { it * it }
|
||||
return square(2)
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package test
|
||||
|
||||
fun function(): Int {
|
||||
val square: (Int) -> Int = { it * it }
|
||||
return square(2)
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package test
|
||||
|
||||
class Class {
|
||||
fun method(): Int {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package test
|
||||
|
||||
fun function(): Int {
|
||||
return 0
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
package test
|
||||
|
||||
class Class {
|
||||
fun method() {
|
||||
class MethodLocalClass
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package test
|
||||
|
||||
fun function() {
|
||||
class FunctionLocalClass
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package test
|
||||
|
||||
class Class {
|
||||
fun method() {
|
||||
}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
package test
|
||||
|
||||
fun function() {
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package test
|
||||
|
||||
class PublicClass
|
||||
internal class InternalClass
|
||||
private class PrivateClass
|
||||
@@ -1,4 +0,0 @@
|
||||
package test
|
||||
|
||||
class PublicClass
|
||||
internal class InternalClass
|
||||
@@ -1,7 +0,0 @@
|
||||
package test
|
||||
|
||||
class Class {
|
||||
val property: Int = 0
|
||||
}
|
||||
|
||||
fun getProp(c: Class) = Class::property.get(c)
|
||||
@@ -1,7 +0,0 @@
|
||||
package test
|
||||
|
||||
class Class {
|
||||
val property: Int = 0
|
||||
}
|
||||
|
||||
fun getProp(c: Class) = c.property
|
||||
Reference in New Issue
Block a user