Search Issue Tracker

Active

Under Consideration for 6000.5.X

Votes

0

Found in

6000.0.67f1

6000.3.8f1

6000.4.0b8

6000.5.0a7

Issue ID

UUM-134976

Regression

No

The Editor does not recognize code errors in generic classes when using C# Source Generator to generate serialization code

Scripting Buildtime

-

Reproduction steps:
1. Open the attached “IN-129952“ project
2. Open the Test Runner (Window > General > Test Runner)
3. Try to run the ValueDictionaryTests.CanSerialize test
4. Observe the test results

Actual result: The test runs and fails
Expected result: The code does not compile and the test can’t be ran

Reproducible with: 6000.0.68f1, 6000.3.10f1, 6000.4.0b10, 6000.5.0a7
Couldn’t test with: 2023.1.0a5 (Invalid dependencies for custom packages)

Reproducible on: Windows 11 (by reporter), macOS 26.3
Not reproducible on: No other environments tested

Note: This issue reproduces only with generic classes, with regular classes the errors are printed in the Console and prevent compilation

Add comment

Log in to post comment