File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
test/integration/bad/function-signatures/overloading Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11 $ ../../../../../../install/default/bin/stanc define_extern1.stan
2- Semantic error in 'define_extern1.stan', line 2 , column 33 to line 5, column 3:
2+ Semantic error in 'define_extern1.stan', line 3 , column 2 to line 5, column 3:
33 -------------------------------------------------
44 1: functions {
55 2: @extern real foo(int x, int y);
6- ^
76 3: real foo(int x, int y){
7+ ^
88 4: return 1.0;
9+ 5: }
910 -------------------------------------------------
1011
1112Function 'foo' has already been declared for signature (int, int) => real
1213 $ ../../../../../../install/default/bin/stanc define_extern2.stan
13- Semantic error in 'define_extern2.stan', line 2 , column 33 to line 3, column 25:
14+ Semantic error in 'define_extern2.stan', line 3 , column 2 to column 25:
1415 -------------------------------------------------
1516 1: functions {
1617 2: @extern real foo(int x, int y);
17- ^
1818 3: real foo(int x, int y);
19+ ^
1920 4: }
2021 -------------------------------------------------
2122
You can’t perform that action at this time.
0 commit comments