Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

promotion between SampleBufs and Arrays fails #55

Open
ssfrr opened this issue Nov 19, 2019 · 0 comments
Open

promotion between SampleBufs and Arrays fails #55

ssfrr opened this issue Nov 19, 2019 · 0 comments

Comments

@ssfrr
Copy link
Collaborator

ssfrr commented Nov 19, 2019

MWE:

julia> promote(SampleBuf(randn(10), 48000), randn(10))
ERROR: promotion of types SampleBuf{Float64,1} and Array{Float64,1} failed to change any arguments
Stacktrace:
 [1] sametype_error(::Tuple{SampleBuf{Float64,1},Array{Float64,1}}) at ./promotion.jl:306
 [2] not_sametype(::Tuple{SampleBuf{Float64,1},Array{Float64,1}}, ::Tuple{SampleBuf{Float64,1},Array{Float64,1}}) at ./promotion.jl:300
 [3] promote(::SampleBuf{Float64,1}, ::Array{Float64,1}) at ./promotion.jl:283
 [4] top-level scope at none:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant