charlesmuchene
01/27/2020, 9:22 AMself-referential vararg parameter passed on the constructor is a container and thus the given class is constructible ?
Current fix: Requires I make the parameter type nullable or otherwise suppress this warning.Dominaezzz
01/27/2020, 9:26 AMclass GraphNode(val value: Int, val children: Array<GraphNode>) work?charlesmuchene
01/27/2020, 9:29 AMcharlesmuchene
01/27/2020, 9:35 AMcharlesmuchene
01/27/2020, 9:40 AMclass GraphNode(val value: Int, children: Array<GraphNode> = emptyArray())dmitriy.novozhilov
01/27/2020, 10:13 AMSelfReferenceConstructorParameter is an IDE warning, not compiler's (and it doesn't affect compilation)
Look like there is a bug in corresponding inspection, so you can create a ticket at https://youtrack.jetbrains.com/issues/KTcharlesmuchene
01/27/2020, 12:21 PM