Yes, 'type A a::Int end' and 'type B a::Int end' should be just a single type.
Indeed you are right, in a second trial I've done the typealias solution didn't work as the second method definition overwrites the first.
Yes, 'type A a::Int end' and 'type B a::Int end' should be just a single type.
Indeed you are right, in a second trial I've done the typealias solution didn't work as the second method definition overwrites the first.