Last active
August 29, 2015 14:26
-
-
Save khatchad/f676b4a64533a8acca65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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