Skip to content
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

#2559. Add tests for augment libraries errors #2562

Merged
merged 3 commits into from
Mar 11, 2024

Conversation

sgrekhov
Copy link
Contributor

@sgrekhov sgrekhov commented Mar 6, 2024

No description provided.

@sgrekhov sgrekhov marked this pull request as draft March 6, 2024 16:33
@sgrekhov
Copy link
Contributor Author

sgrekhov commented Mar 6, 2024

This PR has the same issues as #2561. So, converted it to a draft. Will bring it back to review after fixing the issues

@sgrekhov sgrekhov marked this pull request as ready for review March 7, 2024 08:07
@sgrekhov
Copy link
Contributor Author

sgrekhov commented Mar 7, 2024

Ready for review now

Copy link
Member

@eernstg eernstg left a comment

Choose a reason for hiding this comment

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

LGTM

@eernstg eernstg merged commit 4f0e690 into dart-lang:master Mar 11, 2024
1 of 2 checks passed
@eernstg
Copy link
Member

eernstg commented Mar 11, 2024

One little thing about the terminology: The entry point is a library, and it needs to be a 'script' (in the sense that the language specification uses), that is, it must export a top-level function called main that accepts zero, one, or two positional arguments.

So it's not a problem to have a main function in an augmentation library, that function is going to be exported from the main library anyway. The only problem that came up was that the library with a name of the form `*_t0[1-9].dart' was an augmentation library, and it is likely to become an error to execute an augmentation library.

copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Apr 3, 2024
2024-03-16 sgrekhov22@gmail.com dart-lang/co19#2559. Add augmenting itself tests (dart-lang/co19#2567)
2024-03-16 sgrekhov22@gmail.com dart-lang/co19#2559. Add augmenting types tests. Part 1 (dart-lang/co19#2568)
2024-03-16 sgrekhov22@gmail.com dart-lang/co19#2559. Add merge order tests (dart-lang/co19#2566)
2024-03-16 sgrekhov22@gmail.com dart-lang/co19#2559. Add augmenting types tests. Part 4 (dart-lang/co19#2571)
2024-03-16 sgrekhov22@gmail.com Fixes dart-lang/co19#2572. Fix roll failures (dart-lang/co19#2573)
2024-03-11 sgrekhov22@gmail.com dart-lang/co19#2559. Add applying augmentation library tests (dart-lang/co19#2564)
2024-03-11 sgrekhov22@gmail.com dart-lang/co19#2559. Add tests for augment libraries errors (dart-lang/co19#2562)
2024-03-08 sgrekhov22@gmail.com Fixes dart-lang/co19#2558. Remove `inline-class` experimental flag (dart-lang/co19#2563)

R=kustermann@google.com, pquitslund@google.com

Change-Id: Icdfcf44ecc525c1a673ec8024577cbcdfd316eb0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/359440
Reviewed-by: Erik Ernst <eernst@google.com>
Reviewed-by: Alexander Thomas <athom@google.com>
Auto-Submit: Sergey Grekhov <sgrekhov22@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants