Create From Usage: Do not generate unnecessary/skip necessary empty lines
This commit is contained in:
+1
-1
@@ -5,4 +5,4 @@
|
||||
|
||||
}
|
||||
|
||||
annotation class bar(val s: String, val i: Int)
|
||||
annotation class bar(val s: String, val i: Int)
|
||||
|
||||
+1
-1
@@ -8,4 +8,4 @@ fun test() {
|
||||
|
||||
class Foo {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ fun test() {
|
||||
|
||||
class Foo(i: Int, s: String) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,4 +8,4 @@ class A {
|
||||
|
||||
class Foo(i: Int, s: String) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@ fun test() = Foo(2, "2")
|
||||
|
||||
class Foo(i: Int, s: String) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
-1
@@ -1,7 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
|
||||
class Foo(i: Int) {
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ fun test() = Foo(abc = 1, ghi = A(2), def = "s")
|
||||
|
||||
class Foo(abc: Int, ghi: A, def: String) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
-1
@@ -3,7 +3,6 @@
|
||||
// ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>U</td></tr><tr><td>Found:</td><td>U</td></tr></table></html>
|
||||
|
||||
class A<T>(val n: T) {
|
||||
|
||||
inner class Foo<U>(u: U) {
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ fun test() {
|
||||
|
||||
class Foo(i: Int, s: String, function: Function1<Int, Int>) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ fun test() {
|
||||
|
||||
class Foo(function: Function1<Int, Int>) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
-1
@@ -1,7 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
|
||||
object A {
|
||||
|
||||
class Foo(i: Int) {
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ fun test() = Foo(2, "2")
|
||||
|
||||
class Foo(i: Int, s: String) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
-1
@@ -1,7 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
|
||||
inner class Foo(i: Int) {
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ fun test(): A = Foo(2, "2")
|
||||
|
||||
class Foo(i: Int, s: String) : A() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -7,4 +7,4 @@ fun test(): A = Foo(2, "2")
|
||||
|
||||
class Foo(i: Int, s: String) : A() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ fun test(): A = Foo(2, "2")
|
||||
|
||||
class Foo(i: Int, s: String) : A {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
-1
@@ -1,7 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
|
||||
class A<T>(val n: T) {
|
||||
|
||||
inner class Foo(i: Int, s: String) {
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -5,4 +5,4 @@
|
||||
|
||||
}
|
||||
|
||||
annotation class bar(val s: String, val i: Int)
|
||||
annotation class bar(val s: String, val i: Int)
|
||||
|
||||
+1
-1
@@ -5,4 +5,4 @@
|
||||
|
||||
}
|
||||
|
||||
annotation class bar(val value: String)
|
||||
annotation class bar(val value: String)
|
||||
|
||||
+1
-1
@@ -5,4 +5,4 @@
|
||||
|
||||
}
|
||||
|
||||
annotation class bar(val fooBar: String)
|
||||
annotation class bar(val fooBar: String)
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ fun test() {
|
||||
|
||||
class Foo(i: Int, s: String) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
-1
@@ -1,7 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
|
||||
class B<T>(val t: T) {
|
||||
|
||||
class Foo<U, V>(u: U, v: V) {
|
||||
|
||||
}
|
||||
|
||||
-1
@@ -3,7 +3,6 @@
|
||||
// ERROR: An integer literal does not conform to the expected type U
|
||||
|
||||
class B<T>(val t: T) {
|
||||
|
||||
inner class Foo<U, V>(u: U, v: V) {
|
||||
|
||||
}
|
||||
|
||||
-1
@@ -2,7 +2,6 @@
|
||||
// ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>U</td></tr><tr><td>Found:</td><td>kotlin.String</td></tr></table></html>
|
||||
|
||||
class B<T>(val t: T) {
|
||||
|
||||
inner class Foo<U>(i: Int, u: U) {
|
||||
|
||||
}
|
||||
|
||||
-1
@@ -3,7 +3,6 @@
|
||||
// ERROR: An integer literal does not conform to the expected type V
|
||||
|
||||
class B<T>(val t: T) {
|
||||
|
||||
inner class Foo<U, V, W>(v: V, w: W) {
|
||||
|
||||
}
|
||||
|
||||
-1
@@ -1,7 +1,6 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
|
||||
class B<T>(val t: T) {
|
||||
|
||||
class Foo<U>(i: Int, u: U) {
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@ fun test() = Foo<String, Int>(2, "2")
|
||||
|
||||
class Foo<T, U>(u: U, t: T) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@ fun test() = Foo<String, Int, Boolean>(2, "2")
|
||||
|
||||
class Foo<T, U, V>(u: U, t: T) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@ fun test() = Foo<String, Int>(2, "2")
|
||||
|
||||
class Foo<T, U>(u: U, t: T) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@ fun test() = Foo<Int>(2, "2")
|
||||
|
||||
class Foo<T>(t: T, s: String) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,4 +8,4 @@ fun test(a: A): A = Foo<A, Int>(a, 1)
|
||||
|
||||
class Foo<T, U>(a: T, u: U) : A() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user