- Kotlinスタートブック読書勉強会 #04 第6章 で最後に紹介した内容
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
interface I1 | |
interface I2 | |
class A : I1, I2 | |
class B : I1 // A と 共通の親が I1 | |
class C : I1, I2 // A と 共通の親が I1, I2 | |
fun main(args: Array<String>) { | |
// 共通の親が1つ(I1)ある場合はI1、共通の親が2つ(I1,I2)の場合はAnyに型推論される | |
val x = if (true) A() else B() // x: I1 |
- Kotlinスタートブック読書勉強会 #05 第7章, 第8章 で最後に紹介した内容(一部, 読書会後に追記)
- Kotlinスタートブック読書勉強会 #6 で本編の発表の後に LTした内容
- Kotlinスタートブック読書勉強会 #7 で LTした内容
- Kotlinスタートブック読書勉強会 #9(最終回) で LT した内容
- 某勉強会 で 教わった内容 の 復習用まとめ
- 講師
- 某勉強会 で 教わった内容 の 復習用まとめ
- 講師
OlderNewer