package ceylon.language;

import com.redhat.ceylon.compiler.java.metadata.Ceylon;
import com.redhat.ceylon.compiler.java.metadata.Method;
import com.redhat.ceylon.compiler.java.metadata.Name;
import com.redhat.ceylon.compiler.java.metadata.Sequenced;
import com.redhat.ceylon.compiler.java.metadata.TypeInfo;

@Ceylon(major = 1)
@Method
public final class count {
    
    private count() {
    }
    
    @TypeInfo("ceylon.language.Integer")
    public static long count(@Name("values") @Sequenced
    @TypeInfo("ceylon.language.Iterable<ceylon.language.Boolean>")
    final Iterable<? extends Boolean> values) {
        long count=0;
        java.lang.Object $tmp;
        for (Iterator<? extends Boolean> $val$iter$0 = values.getIterator(); 
                !(($tmp = $val$iter$0.next()) instanceof Finished);) {
           if (!((Boolean)$tmp).booleanValue()) count++;
        }
        return count;
    }
}

@@ -824,17 +824,16 @@
     if (
-!
 ((Boolea

Fix count() (was counting false instead of true)