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

Formatting with SimpleTraits.jl #207

Closed
theogf opened this issue Mar 24, 2020 · 2 comments
Closed

Formatting with SimpleTraits.jl #207

theogf opened this issue Mar 24, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@theogf
Copy link

theogf commented Mar 24, 2020

Moving issue JunoLab/Juno.jl#529 here.
Using SimpleTraits.jl, the formatter fails when seeing this line:
@traitfn function predict_ar(m::TGP, p::Int = 3, n::Int = 1; y_past = get_y(m)) where {T,TGP<:AbstractGP{T};IsMultiOutput{TGP}}
both when applying on the line alone or on the whole function

@domluna domluna added the bug Something isn't working label Mar 24, 2020
@domluna
Copy link
Owner

domluna commented Mar 24, 2020

so ; in the where condition is causing this error. It should be an easy fix, never seen ; used like this before

@theogf
Copy link
Author

theogf commented Mar 24, 2020

Yes exactly it decides if a type satisfy some condition, it kind of replaces multiple inheritance

domluna added a commit that referenced this issue Mar 25, 2020
domluna added a commit that referenced this issue Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants