felix
11/22/2017, 10:23 AMdragas
11/22/2017, 11:34 AMpoohbar
11/22/2017, 6:12 PMelect
11/22/2017, 7:14 PMmersan
11/22/2017, 8:22 PMShawn
11/22/2017, 8:45 PMketurn
11/23/2017, 7:00 AMdh44t
11/23/2017, 11:16 AMsveri
11/23/2017, 7:15 PMval planetHasNumberOfSettlers = mutableMapOf<Number, Number>()
val nrOfSettlers: Number = if (planetHasNumberOfSettlers.containsKey(closePlanet.id)) {
planetHasNumberOfSettlers[closePlanet.id]
} else 0
Now the compiler emits an error: Type mismatch Required Number Found Number?
I get why that is, but shouldnt kotlin be able to infer that I make sure that the item is existent?sveri
11/23/2017, 7:20 PMsxtanna
11/24/2017, 8:05 AMNatsuki(开元米粉实力代购)
11/24/2017, 8:53 AM(Foo)->Unit
instead 😁Torbilicious
11/24/2017, 10:23 AMlouiscad
11/24/2017, 6:34 PMstefano.maffullo
11/25/2017, 3:19 PMcedric
11/25/2017, 5:53 PMforcelain
11/26/2017, 11:05 AMAbdo Tarek
11/26/2017, 7:21 PMalexcouch
11/27/2017, 4:50 AMcedric
11/27/2017, 6:09 AMalexcouch
11/27/2017, 7:21 AMalexcouch
11/27/2017, 7:26 AMMathew xu
11/27/2017, 7:32 AMleodeng
11/27/2017, 12:21 PMlouiscad
11/27/2017, 12:47 PM.pom
filessnrostov
11/27/2017, 1:05 PMneworldlt
11/27/2017, 7:48 PMg4sarma
11/27/2017, 8:27 PMjchannon
11/27/2017, 10:26 PMDoug
11/28/2017, 12:58 AMDoug
11/28/2017, 12:58 AMelect
11/28/2017, 8:57 AM