Skip to content

Add integration tests for complex inheritance, generics, and extension methods#278

Open
theolivenbaum wants to merge 3 commits intomasterfrom
test/complex-inheritance-generics-extensions-3219551713835101639
Open

Add integration tests for complex inheritance, generics, and extension methods#278
theolivenbaum wants to merge 3 commits intomasterfrom
test/complex-inheritance-generics-extensions-3219551713835101639

Conversation

@theolivenbaum
Copy link
Collaborator

Added a new integration test file 'ComplexInheritanceGenericsInterfacesTests.cs' covering simple and nested inheritance with generics, and complex extension methods with output verification (skipping Roslyn for the latter).


PR created automatically by Jules for task 3219551713835101639 started by @theolivenbaum

…n methods

Added a new integration test file 'ComplexInheritanceGenericsInterfacesTests.cs' covering simple and nested inheritance with generics, and complex extension methods with output verification (skipping Roslyn for the latter).

Co-authored-by: theolivenbaum <8791811+theolivenbaum@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules bot and others added 2 commits February 19, 2026 19:00
…nd nested namespaces

Added 6 new integration tests in 'ComplexInheritanceGenericsInterfacesTests.cs':
- SimpleInheritanceAndGenerics
- NestedInheritanceAndGenerics
- ComplexExtensionMethodsWithGenerics
- DeeplyNestedNamespacesAndGenerics
- ComplexGenericConstraintsInInheritanceChain
- CrossNamespaceInheritanceAndExtensions

These tests cover scenarios involving deep namespace nesting, cross-namespace inheritance, complex generic constraints, and extension methods on generic types, ensuring the compiler handles these advanced C# features correctly. Tests involving namespaces or top-level extensions use 'skipRoslyn: true' with manual output verification due to Roslyn script limitations.

Co-authored-by: theolivenbaum <8791811+theolivenbaum@users.noreply.github.com>
Added 50 integration tests across 4 files covering:
- Advanced Generics: Covariance/Contravariance, abstract generic bases, hiding members, sealed generics.
- Advanced Extension Methods: Extensions on arrays, lists, dictionaries, nested types, and constraints.
- Advanced Constraints: `struct`, `class`, `new()`, `base class`, `interface`, and naked constraints.
- Complex Features: Generic events, delegates, indexers, operators, patterns, and nullable structs.

These tests ensure robust support for complex C# scenarios in the H5 compiler. Tests involving platform-specific behavior (e.g., bool.ToString() casing) or limitations (e.g., namespaces in scripts) use `skipRoslyn: true` with manual output verification.

Co-authored-by: theolivenbaum <8791811+theolivenbaum@users.noreply.github.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.

1 participant