Skip to content

Instantly share code, notes, and snippets.

@fredrikekre fredrikekre/typestuff.jl
Last active Apr 26, 2016

Embed
What would you like to do?
abstract foo{T}
immutable bar{T}
x::T
end
immutable baz{T} <: foo{T <: Real}
x::bar{T}
end
x = 1.0; a = bar(x); b = baz(a)
x = complex(1.0); c = bar(x); d = baz(c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.