Answer the question
In order to leave comments, you need to log in
| in function arguments?
In JS you can do this:
public addError(error: E_UNKNOWN | E_CUSTOM | E_AUTH_INCORRECT){
}
AddError(unknown *EUnknown | *Ecustom) <- ошибка
Answer the question
In order to leave comments, you need to log in
No way, in Go, in principle, there is no polymorphism in any form, duck typing does not count
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question