Shawn
11/30/2017, 9:54 PMadam-mcneilly
11/30/2017, 9:55 PMsnowe
11/30/2017, 10:02 PMmapOf(
where the error is to mutableMapOf
which fixed the error, but then just now I decided to try removing mutable
to see the error again, and it didn't come up again. I'm guessing this was just some plugin weirdness...groostav
11/30/2017, 10:39 PMgroostav
11/30/2017, 10:39 PMgroostav
11/30/2017, 10:40 PMgroostav
11/30/2017, 10:40 PMI feel hard done by▾
groostav
11/30/2017, 10:41 PMis Any
doesnt count as exhaustivegroostav
11/30/2017, 10:41 PMShawn
11/30/2017, 10:42 PMinstanceCache.getValue()
?groostav
11/30/2017, 10:42 PMinstanceCache
is a Map<Class, Library>
, getValue
is the stdlib extension functiongroostav
11/30/2017, 10:42 PMcom.sun.jna.Library
Shawn
11/30/2017, 10:42 PMShawn
11/30/2017, 10:43 PMShawn
11/30/2017, 10:43 PMwhen
statement can’t ever really be exhaustive on types because Library
isn’t a sealed classgroostav
11/30/2017, 10:44 PMShawn
11/30/2017, 10:44 PMLibrary
isn’t part of a type hierarchy based on a sealed class with a fixed amount of enumerated typesgroostav
11/30/2017, 10:44 PMval x = when {
true -> "hi"
}
is considered exhaustive is it not?groostav
11/30/2017, 10:44 PMgroostav
11/30/2017, 10:44 PMgroostav
11/30/2017, 10:45 PMgroostav
11/30/2017, 10:45 PMgroostav
11/30/2017, 10:45 PMShawn
11/30/2017, 10:45 PMis
comparisons to provide the conditional branchesShawn
11/30/2017, 10:46 PMwhen
exhaustive (without using else
), but none of them are immediately coming to mind, unfortunatelyShawn
11/30/2017, 10:47 PMgroostav
11/30/2017, 10:47 PMShawn
11/30/2017, 10:48 PMfitermay
11/30/2017, 10:51 PMkarelpeeters
11/30/2017, 10:56 PMmyLong.toLong() and 0xffffffffL