Skip to content

Instantly share code, notes, and snippets.

@dahabit
Last active November 13, 2018 15:57
Show Gist options
  • Save dahabit/db28d776b7cb9a7dfb67160b36485afd to your computer and use it in GitHub Desktop.
Save dahabit/db28d776b7cb9a7dfb67160b36485afd to your computer and use it in GitHub Desktop.
void main() {
var circleSlot = new CircleSlot();
circleSlot.insert(new Circle());
var squareSlot = new SquareSlot();
squareSlot.insert(new Square());
}
class Circle {}
class Square {}
class SquareSlot{
insert (Square sqareSlot){
}
}
class CircleSlot{
insert (Circle circleSlot){
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment