//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): // CHECK-NOT: an internal error threw // CHECK-NOT: error: interface IFoo: IDifferentiable where T : __BuiltinFloatingPointType { This myFunc(This other); } struct Foo where T : __BuiltinFloatingPointType { [BackwardDifferentiable] This myFunc(This other) { [MaxIters(N)] for (int i = 0; i < N; i++) {} return this; } } extension Foo : IFoo where T : __BuiltinFloatingPointType {}