Stdlib update due ONLY_LOCAL_RETURN diagnostic

This commit is contained in:
Michael Bogdanov
2014-06-17 18:18:06 +04:00
parent ce71c5abde
commit a1a205a3db
3 changed files with 8 additions and 8 deletions
@@ -92,7 +92,7 @@ fun ordering(): List<GenericFunction> {
exclude(Strings)
}
templates add f("sortBy(order: (T) -> R)") {
templates add f("sortBy(inlineOptions(InlineOption.ONLY_LOCAL_RETURN) order: (T) -> R)") {
inline(true)
doc {
@@ -137,7 +137,7 @@ fun ordering(): List<GenericFunction> {
only(Streams, ArraysOfObjects, ArraysOfPrimitives, Iterables)
}
templates add f("sortDescendingBy(order: (T) -> R)") {
templates add f("sortDescendingBy(inlineOptions(InlineOption.ONLY_LOCAL_RETURN) order: (T) -> R)") {
inline(true)
doc {