Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee committed Dec 31, 2024
1 parent 2aae031 commit 9c8a6f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -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.
*
Expand Down
5 changes: 3 additions & 2 deletions test/C/src/ParameterOverride.lf
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
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);
}
=}
}

reactor B(x:int = 1) extends A { }
reactor B(x: int = 1) extends A {
}

main reactor {
b = new B()
Expand Down

0 comments on commit 9c8a6f0

Please sign in to comment.