Skip to content

Instantly share code, notes, and snippets.

@dahabit
Created November 13, 2018 16:13
Show Gist options
  • Save dahabit/3a624dbd1de7160946d3a6625db5bccc to your computer and use it in GitHub Desktop.
Save dahabit/3a624dbd1de7160946d3a6625db5bccc to your computer and use it in GitHub Desktop.
void main() {
var circleSlot = new Slot<Circle>();
circleSlot.insert(new Circle());
var squareSlot = new Slot<Square>();
squareSlot.insert(new Square());
}
class Circle {}
class Square {}
class Slot<T>{
insert (T shape){
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment