Monday, 9 September 2013

Dart, constraints on Generics?

Dart, constraints on Generics?

Is there a Dart equivalent syntax to the c# ability to specify type
constraints on a generic type, e.g. in C#-like syntax where TBase is
SomeType:
class StackPanel<TBase> extends Panel<TBase> where TBase : SomeType{
}

No comments:

Post a Comment