コード例 #1
0
ファイル: IfStmt.java プロジェクト: h-inoue/JCop
 public void typeCheck() {
   TypeDecl cond = getCondition().type();
   if (!cond.isBoolean()) {
     error("the type of \"" + getCondition() + "\" is " + cond.name() + " which is not boolean");
   }
 }