Vladyslav Sitalo
08/20/2018, 12:16 PMclass Foo(val Bar: String, val Fizz: String = "Buzz")
then when I do ::Foo, I’d get a reference to a 2 argument constructor (as it’s considered primary
, as I understand), is there a way for me to get a reference to the constructor with 1 argument (besides e.g. getting all constructors and filtering them on that criteria)?diesieben07
08/20/2018, 12:40 PMclass A {
constructor(x: String)
constructor(): this("hello")
}
val c: () -> A = ::A // reference to no-arg constructor
Vladyslav Sitalo
08/20/2018, 5:20 PMdiesieben07
08/21/2018, 2:09 PM