Skip to content

Commit cb6b14b

Browse files
committed
rename variable "param" into "parameter" to avoid keyword conflicts
1 parent 8e33dc1 commit cb6b14b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Tst/RegressionTests/Feature1SMLevelDecls/Correct/PingPong/PingPong.p

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ spec M observes M_Ping, M_Pong {
7575
}
7676
}
7777

78-
fun _CREATEMACHINE(cner: machine, typeOfMachine: int, param : any, newMachine: machine) : machine
78+
fun _CREATEMACHINE(cner: machine, typeOfMachine: int, parameter : any, newMachine: machine) : machine
7979
{
8080
if(typeOfMachine == 1)
8181
{
82-
newMachine = new PING(param as (machine, machine));
82+
newMachine = new PING(parameter as (machine, machine));
8383
}
8484
else if(typeOfMachine == 2)
8585
{

Tst/RegressionTests/Feature1SMLevelDecls/Correct/bug3/bug3.p

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ machine Main {
2222
}
2323

2424
fun CREATECONTAINER() : machine {return null as machine;}
25-
fun CreateSMR(cont: machine, param : any)
25+
fun CreateSMR(cont: machine, parameter : any)
2626
{
2727

28-
send (param as (machine, bool, int)).0, x, (100, 100);
28+
send (parameter as (machine, bool, int)).0, x, (100, 100);
2929
}
3030
}
3131

Tst/RegressionTests/Feature1SMLevelDecls/Correct/bug4/bug4.p

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ machine Main {
2121
}
2222

2323
fun CREATECONTAINER() : machine {return null as machine;}
24-
fun CreateSMR(cont: machine, param : any) : machine
24+
fun CreateSMR(cont: machine, parameter : any) : machine
2525
{
2626
return null as machine;
2727
}

0 commit comments

Comments
 (0)