damian
12/14/2017, 3:20 PMwhen on an instance of SpecificExceptions the auto-completion for all branches at least doesn’t workAndreas Sinz
12/14/2017, 3:24 PMErrorOne and ErrorTwo?damian
12/14/2017, 3:24 PMErrorTwo as possibilityAndreas Sinz
12/14/2017, 3:25 PMSpecificExcetpions, it cannot be an instance of ErrorOne?damian
12/14/2017, 3:26 PMwhen branches is telling me; also red-underine with “incompatible types”Andreas Sinz
12/14/2017, 3:27 PMdamian
12/14/2017, 3:28 PMAndreas Sinz
12/14/2017, 3:28 PMErrorOne is not a subclass of SpecificExceptions, so an instance of SpecificExceptions can not be ErrorOnedamian
12/14/2017, 3:29 PMAndreas Sinz
12/14/2017, 3:34 PMAndreas Sinz
12/14/2017, 3:35 PMclass SpecificBaseException(val exception: BaseException)damian
12/14/2017, 4:28 PM