diff --git a/core/src/main/java/org/lflang/generator/c/CParameterGenerator.java b/core/src/main/java/org/lflang/generator/c/CParameterGenerator.java index f73f3aefb5..bcf03ea33a 100644 --- a/core/src/main/java/org/lflang/generator/c/CParameterGenerator.java +++ b/core/src/main/java/org/lflang/generator/c/CParameterGenerator.java @@ -1,13 +1,12 @@ package org.lflang.generator.c; +import java.util.HashSet; import org.lflang.ast.ASTUtils; import org.lflang.generator.CodeBuilder; import org.lflang.generator.ParameterInstance; import org.lflang.lf.Initializer; import org.lflang.lf.Parameter; -import java.util.HashSet; - /** * Generates C code to declare and initialize parameters. * diff --git a/test/C/src/ParameterOverride.lf b/test/C/src/ParameterOverride.lf index d639eea3af..b586281dee 100644 --- a/test/C/src/ParameterOverride.lf +++ b/test/C/src/ParameterOverride.lf @@ -1,6 +1,6 @@ target C -reactor A(x:int = 0) { +reactor A(x: int = 0) { reaction(startup) {= if (self->x != 1) { lf_print_error_and_exit("x is %d. Should be 1.", self->x); @@ -8,7 +8,8 @@ reactor A(x:int = 0) { =} } -reactor B(x:int = 1) extends A { } +reactor B(x: int = 1) extends A { +} main reactor { b = new B()