-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
Closes #745 ### Summary of Changes Formatting tests were difficult to maintain since several tests were testing the same rules in different contexts, including the formatting for * lists of constraints, * lists of parameters, * lists of results, * lists of type parameter, * classes (global vs. nested), * enum (global vs. nested), * functions (global vs. method). This made changes and additions cumbersome. This PR extracts the tests for these rules and removes the redundant ones.
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
annotation MyAnnotation ( a : Int ) | ||
annotation MyAnnotation where { | ||
} | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
annotation MyAnnotation(a: Int) | ||
annotation MyAnnotation where {} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
class MyClass { | ||
@Annotation fun myFunction ( ) | ||
@MyAnnotation fun myFunction ( ) | ||
} | ||
|
||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
class MyClass { | ||
@Annotation | ||
@MyAnnotation | ||
fun myFunction() | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
class MyClass { | ||
fun myFunction < out T > ( ) | ||
@MyAnnotation static fun myFunction ( ) | ||
} | ||
|
||
// ----------------------------------------------------------------------------- | ||
|
||
class MyClass { | ||
fun myFunction<out T>() | ||
@MyAnnotation | ||
static fun myFunction() | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.