Chilli
04/29/2020, 9:29 PMinit start and after a few seconds, displays Test running process exited unexpectedly. Any idea what might it be?
str is String
used is MutableSet<String>crummy
04/29/2020, 9:34 PMChilli
04/29/2020, 9:37 PMstr: String is a parameter, used: MutableSet<String> is a property in companion object, declared as:
private val used: MutableSet<String> = mutableSetOf()Chilli
04/29/2020, 9:38 PMChilli
04/29/2020, 9:38 PMcrummy
04/29/2020, 9:40 PMChilli
04/29/2020, 9:41 PMaraqnid
04/29/2020, 9:41 PMChilli
04/29/2020, 9:41 PMaraqnid
04/29/2020, 9:42 PMcrummy
04/29/2020, 9:42 PMChilli
04/29/2020, 9:43 PMCasey Brooks
04/29/2020, 10:13 PMobjects are frozen on creation, so you can’t modify the collection without the runtime throwing immutability exceptionsChilli
04/29/2020, 10:31 PMShawn
04/29/2020, 11:15 PMChilli
04/29/2020, 11:32 PMDominaezzz
04/29/2020, 11:53 PMused before or after init ?Dominaezzz
04/29/2020, 11:55 PMinit is for the class and not the companion object.Chilli
04/29/2020, 11:59 PMval used is in the companion object