Describe the bug
The following:
export type X = A[] | B[] | C;
Fails to compile in Java, because type erasure turns this into 2 arrays.
The following does work:
export type X = (A | B)[] | C;
jsii-compiler should reject the former.
Regression Issue
Expected Behavior
If it passes the compiler it shouldn't fail packaging.
Current Behavior
The opposite.
Reproduction Steps
SEe description.
Possible Solution
No response
Additional Information/Context
No response
SDK version used
Environment details (OS name and version, etc.)
Describe the bug
The following:
Fails to compile in Java, because type erasure turns this into 2 arrays.
The following does work:
jsii-compiler should reject the former.
Regression Issue
Expected Behavior
If it passes the compiler it shouldn't fail packaging.
Current Behavior
The opposite.
Reproduction Steps
SEe description.
Possible Solution
No response
Additional Information/Context
No response
SDK version used
Environment details (OS name and version, etc.)