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

Type parameters lost in instantiation #4141

Closed
toivoh opened this issue Aug 25, 2013 · 0 comments
Closed

Type parameters lost in instantiation #4141

toivoh opened this issue Aug 25, 2013 · 0 comments

Comments

@toivoh
Copy link
Contributor

toivoh commented Aug 25, 2013

The following code

type Vertex{N,T}; end
type Face{V}; end
type Hull{F<:Face}; end

function create_hull(N, T)
    F = Face{Vertex{N,T}}
    @show F
    hull = Hull{F}()
    @show typeof(hull)
end

create_hull(4, Int)

prints

F => Face{Vertex{4,Int64}}
typeof(hull) => Hull{Face{V}}

I would have expected typeof(hull) => Hull{Face{Vertex{4,Int64}}}, but somehow the type parameters to Face seem to have got lost when Hull was instantiated.

IanButterworth added a commit that referenced this issue Mar 2, 2025
Stdlib: Pkg
URL: https://github.com/JuliaLang/Pkg.jl.git
Stdlib branch: master
Julia branch: master
Old commit: c54ee594d
New commit: 60e3185e3
Julia version: 1.13.0-DEV
Pkg version: 1.12.0(Does not match)
Bump invoked by: @IanButterworth
Powered by:
[BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl)

Diff:
JuliaLang/Pkg.jl@c54ee59...60e3185

```
$ git log --oneline c54ee594d..60e3185e3
60e3185e3 Test fix: handle if tested Pkg is shipped version (#4182)
61115bee7 fix the right temp dir (#4181)
6fa32d5c3 use temp dir on same filesystem for source install (#4180)
cf6191bfa Pidlock source and artifact installation. Registry pidlock fixes. (#4168)
2779d42f4 Update toml-files.md (#4177)
f5174898e Changed Pkg.test to prioritise julia_args --threads over current process threads (#4141)
14831edf4 enable windows tree_hash checking (#4167)
92595ec67 Add more tests for BinaryBuilder usage (#4156)
```

Co-authored-by: IanButterworth <[email protected]>
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