Skip to content

Add tests for #20103 #21358

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

Merged
merged 1 commit into from
Apr 16, 2017
Merged

Add tests for #20103 #21358

merged 1 commit into from
Apr 16, 2017

Conversation

martinholters
Copy link
Member

Although not everything is perfect with all the comments in #20103, most of them (and the OP) have been fixed eventually, so I'd say this closes #20103.

@martinholters
Copy link
Member Author

Travis 64bit linux timed out (10 minutes without output), so probably a test hanging, but subtype did finish. Travis on MacOS failed in the spawn tests. Both failures look unrelated, so restarted after backing logs up at https://gist.github.com/martinholters/9383f043ea1acaae32050ee30e98d765.

test/subtype.jl Outdated
@@ -1070,3 +1070,12 @@ end
@testintersect(Tuple{A20992{R, D, d} where d where D, Int} where R,
Tuple{C20992{S, n, T, D, d} where d where D where T where n where S, Any},
Tuple{C20992, Int})

# issue #20103, OP and comments
immutable TT20103{X,Y} end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

struct ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still says immutable

test/subtype.jl Outdated
immutable TT20103{X,Y} end
f20103{X,Y}(::Type{TT20103{X,Y}},x::X,y::Y) = 1
f20103{X}(::Type{TT20103{X,X}},x::X) = 100
@testintersect(Tuple{Int, Ref{Pair{K,V}}} where V where K,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test already appears on line 834.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, thanks for pointing that out

@ararslan ararslan added the test This change adds or pertains to unit tests label Apr 12, 2017
@martinholters
Copy link
Member Author

Comments addressed.

@martinholters
Copy link
Member Author

AppVeyor failure unrelated (GitError(Code:ERROR, Class:OS, Failed to receive response: The server returned an invalid or unrecognized response)).

@martinholters
Copy link
Member Author

Ok, this time I think I actually have addressed the comments.

@JeffBezanson JeffBezanson merged commit 8934aab into master Apr 16, 2017
@JeffBezanson JeffBezanson deleted the mh/test_20103 branch April 16, 2017 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test This change adds or pertains to unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New type system: stackoverflow when defining method
5 participants