Ifvwm
06/21/2019, 10:31 AMdiesieben07
06/21/2019, 10:32 AMInt
and String
are final, so no, you cannot inherit from them.gildor
06/21/2019, 10:33 AMStephan Schroeder
06/21/2019, 3:02 PMStephan Schroeder
06/21/2019, 3:03 PMEither<Int, String?>
is probably what you’re looking for assuming your variable is fine with being either an Int
or a String?
, but not both at the same time.