Created
August 11, 2016 20:22
-
-
Save lkuper/fabc35b8f59aebb1cbf28337834f16d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
julia> foo = 3 | |
3 | |
julia> function test(a::Type{Val{foo}}) return foo end | |
test (generic function with 2 methods) | |
julia> test(Val{foo}) | |
3 | |
julia> foo = 4 | |
4 | |
julia> test(Val{foo}) | |
ERROR: MethodError: `test` has no method matching test(::Type{Val{4}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment