Skip to content

Instantly share code, notes, and snippets.

@khatchad
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khatchad/f676b4a64533a8acca65 to your computer and use it in GitHub Desktop.
Save khatchad/f676b4a64533a8acca65 to your computer and use it in GitHub Desktop.
package p;
class C implements java.lang.Iterable {
//...
}
class A {
void m() {
C c = null; //this class implements java.lang.Iterable.
//should fail precondition
for (Object o : c)
;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment