-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(kotlin) remove very old keywords and update example code (#2623)
Removes obsolete Kotlin keywords and updates example. - These are no longer valid Kotlin keywords. (and there removal from the grammar was suggested years ago) - Also remove the `trait` usage from the example and format the code according to the Kotlin coding conventions. Reference: af601cb
- Loading branch information
Showing
3 changed files
with
7 additions
and
7 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
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,12 +1,12 @@ | ||
import kotlin.lang.test | ||
|
||
trait A { | ||
interface A { | ||
fun x() | ||
} | ||
|
||
fun xxx() : Int { | ||
return 888 | ||
fun xxx(): Int { | ||
return 888 | ||
} | ||
|
||
public fun main(args : Array<String>) { | ||
public fun main(args: Array<String>) { | ||
} |