-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#20 Optimized body returns to single line
- Loading branch information
Angel Garcia
authored and
Angel Garcia
committed
Feb 3, 2018
1 parent
b2fa60f
commit e0a49e4
Showing
7 changed files
with
45 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 9 additions & 18 deletions
27
Tests/SwiftKotlinFrameworkTests/Tests/KotlinTokenizer/extensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,15 @@ | ||
val Double.km: Double | ||
get() { | ||
return this * 1000.0 | ||
} | ||
get() = this * 1000.0 | ||
val Double.m: Double | ||
get() { | ||
return this | ||
} | ||
get() = this | ||
|
||
open fun Double.toKm() : Double { | ||
return this * 1000.0 | ||
} | ||
open fun Double.toKm() : Double = | ||
this * 1000.0 | ||
|
||
fun Double.toMeter() : Double { | ||
return this | ||
} | ||
fun Double.toMeter() : Double = | ||
this | ||
|
||
public fun Double.Companion.toKm() : Double { | ||
return this * 1000.0 | ||
} | ||
public fun Double.Companion.toKm() : Double = | ||
this * 1000.0 | ||
public val Double.Companion.m: Double | ||
get() { | ||
return this | ||
} | ||
get() = this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters