Comments (1)
NB: the same thing, method for a Union
, works fine as long as none of the types in the Union
were defined with function
. Example:
julia> struct T <: Function end
julia> struct S <: Function end
julia> (::Union{S,T})() = 7
julia> S()()
7
julia> @which S()()
(::Union{S, T})()
@ Main REPL[3]:1
julia> versioninfo()
Julia Version 1.12.0-DEV.766
Commit 9d8ecaa899d (2024-06-21 17:00 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 8 × AMD Ryzen 3 5300U with Radeon Graphics
WORD_SIZE: 64
LLVM: libLLVM-17.0.6 (ORCJIT, znver2)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)
from julia.
Related Issues (20)
- Large regression in union array benchmarks due to 'better type inference for several functions taking NTuple args (#55124)'
- Base.active_repl isn't defined in Julia 1.11+ even with `julia -i` HOT 2
- False array-argument lcm for non-integers HOT 3
- `join` docstring is wrong w.r.t `AnnotatedStrings`s
- bad PhiNode renumbering of #undef value
- Regression in inferred return type for `join` on simple iterator. HOT 2
- v1.11-rc2: Inconsistent behaviour between function call and expected behaviour HOT 4
- AnnotatedStrings: unclear what operations support/preserve annotations HOT 2
- syntax highlighting needs more work
- Error during perform `isposdef` on own Matrix type at Julia 1.6 HOT 1
- Converting `Dates.OtherPeriods` to `Seconds`
- Test: Evaluated expression should expand full expression HOT 1
- Using types and not strings to represent Paths
- [REPL] Autocompletion of arguments inside `ModuleName.function` call is broken
- rdiv! on LU object is much slower than ldiv! HOT 4
- `ELF load command address/offset not properly aligned` regression in patchelf
- Base.last(::Tuple,::Integer) and Base.first(::Tuple,::Integer) return Vectors HOT 3
- Tab completion not working with module specification in `@time` calls involving another macro
- Tab completion freezes the REPL HOT 4
- at-doc return type depends on whether REPL is loaded HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from julia.