Skip to content

Instantly share code, notes, and snippets.

View Overruler's full-sized avatar

Timo Kinnunen Overruler

View GitHub Profile
@Overruler
Overruler / ArrayList.java
Created June 20, 2015 00:55
Prototyping custom receiver types for self-typing and more
package root.sub;
import java.util.Arrays;
import java.util.Iterator;
import javax.annotation.Generated;
import root.List;
public class ArrayList<T> implements List<T> {
protected @SuppressWarnings("unchecked") T[] array = (T[]) new Object[0];