Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Expose Index and Range with adding tests#33352

Merged
tarekgh merged 7 commits into
dotnet:masterfrom
tarekgh:IndexAndRange
Nov 11, 2018
Merged

Expose Index and Range with adding tests#33352
tarekgh merged 7 commits into
dotnet:masterfrom
tarekgh:IndexAndRange

Conversation

@tarekgh

@tarekgh tarekgh commented Nov 9, 2018

Copy link
Copy Markdown
Member

No description provided.

@tarekgh tarekgh added the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Nov 9, 2018
@tarekgh

tarekgh commented Nov 9, 2018

Copy link
Copy Markdown
Member Author

This is pending on dotnet/coreclr#20899

@tarekgh

tarekgh commented Nov 9, 2018

Copy link
Copy Markdown
Member Author

Comment thread src/System.Memory/tests/Span/Indexer.cs Outdated
Comment thread src/System.Memory/tests/Span/Indexer.cs Outdated
Assert.Equal(span1[new Index(2, fromEnd: false)], span1[new Index(span.Length - 2, fromEnd: true)]);

Assert.Throws<IndexOutOfRangeException>(() =>
new Span<char>(new char [] { 'H', 'e', 'l', 'l', 'o'})[new Index(0, fromEnd: true)]);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I still don't like this semantic in the slightest. It's like going backwards to VB6-esque programming models.

@stephentoub

Copy link
Copy Markdown
Member

@dotnet-bot test this please

@tarekgh

tarekgh commented Nov 10, 2018

Copy link
Copy Markdown
Member Author

I am looking at the failure in UWP. properly I'll need to exclude the new APIs from the App compat checks.

@tarekgh tarekgh removed the * NO MERGE * The PR is not ready for merge yet (see discussion for detailed reasons) label Nov 10, 2018
@tarekgh

tarekgh commented Nov 11, 2018

Copy link
Copy Markdown
Member Author

The failed CI case is tracked by https://github.com/dotnet/corefx/issues/33389

@tarekgh tarekgh merged commit 75a6b03 into dotnet:master Nov 11, 2018
@karelz karelz added this to the 3.0 milestone Nov 15, 2018
baulig pushed a commit to mono/corefx that referenced this pull request Feb 7, 2019
* Expose Index and Range with adding tests

* More tests and more exposed APIs

* More changes

* address feedback

* Fix ApiCompat break

* Fix UAPAOT app compat

(cherry picked from commit 75a6b03)
marek-safar pushed a commit to mono/corefx that referenced this pull request Feb 12, 2019
* Expose Index and Range with adding tests

* More tests and more exposed APIs

* More changes

* address feedback

* Fix ApiCompat break

* Fix UAPAOT app compat

(cherry picked from commit 75a6b03)
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Expose Index and Range with adding tests

* More tests and more exposed APIs

* More changes

* address feedback

* Fix ApiCompat break

* Fix UAPAOT app compat


Commit migrated from dotnet/corefx@75a6b03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants