-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
the "special-case inliners for known pure functions that compute types" are broken #18735
Labels
Comments
Smaller repro: julia> @noinline f(n) = n ? error() : Int
f (generic function with 1 method)
julia> g() = Union{f(true)}
g (generic function with 1 method)
julia> g()
Int64 Some constructors like |
This is the |
KristofferC
added a commit
that referenced
this issue
Jun 25, 2017
KristofferC
added a commit
that referenced
this issue
Jun 25, 2017
KristofferC
added a commit
that referenced
this issue
Jun 25, 2017
DrTodd13
pushed a commit
to IntelLabs/julia
that referenced
this issue
Jun 26, 2017
ararslan
pushed a commit
that referenced
this issue
Sep 11, 2017
ararslan
pushed a commit
that referenced
this issue
Sep 13, 2017
vtjnash
pushed a commit
that referenced
this issue
Sep 14, 2017
ararslan
pushed a commit
that referenced
this issue
Sep 15, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
This can be reproduced with different versions of julia (.4 to .5) as well as using
BaseTestDeprecated
vsBase.Test
.Example below:
This is the module we are testing:
This is the module that tests
ToTest
with oldBase.Test
akaBaseTestDeprecated
This is the module that tests
ToTest
with newBase.Test
In this example,
ToTest.get_type(s::String)
should throw an error if thes
is not "UInt16"BaseTestDeprecated
works correctly by catching the error:New
Base.Test
works incorrectly by not even running the functionToTest.test_get_string
works correctly:Is there something wrong the way we are using
@test_throws
with the newBase.Test
?The text was updated successfully, but these errors were encountered: