Compiler Error C3400
circular constraint dependency involving 'constraint_1' and 'constraint_2'
The compiler detected circular constraints.
For more information, see Constraints on Generic Type Parameters (C++/CLI).
Example
The following sample generates C3400.
// C3400.cpp
// compile with: /clr /c
generic<class T, class U>
where T : U
where U : T // C3400
public ref struct R {};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for