Conflict between Abstract Types of different modules

59 views
Skip to first unread message

Paulo Roberto de Oliveira Castro

unread,
Sep 14, 2015, 4:47:23 PM9/14/15
to julia-dev
If I have Module A and Module B defining an abstract type T, A.T and B.T conflict. Since the type T is abstract, aren't A.T and B.T strictly the same, and therefore shouldn't conflict?

John Myles White

unread,
Sep 14, 2015, 4:49:25 PM9/14/15
to juli...@googlegroups.com
module A
abstract T <: Integer
end

module B
abstract T <: AbstractString
end

So, no, they're not the same.

For future reference, this is a better question for julia-users.

-- John
Reply all
Reply to author
Forward
0 new messages