Created
June 19, 2017 06:31
-
-
Save ezura/b4d1eab050356daf689785a8e56e6fdf to your computer and use it in GitHub Desktop.
( ・ω・)) #swift #CodePiece #kotlin
This file contains hidden or 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
| // Swift | |
| func TODO() -> Never { fatalError() } | |
| func start() -> String { return TODO() } // 返り値の型が Never でもコンパイル通る | |
| // Kotlin | |
| fun TODO(): Nothing = throw NotImplementedError() | |
| fun start(): String = TODO() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment